From 2c42ad62de407eea6ff681b2afbd94b727f89531 Mon Sep 17 00:00:00 2001 From: John Hua Date: Fri, 11 Nov 2016 10:06:55 +0800 Subject: [PATCH] Fix coverage test configuration This fix tries to solve below issue: * *.pyc need to be cleared before running coverage test * Old coverage results need to be cleaned Change-Id: I2bdfaf4f7023f07fce805b71d256cc3166693826 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 2f98fee..27eca68 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,10 @@ commands = flake8 {posargs} commands = {posargs} [testenv:cover] -commands = python setup.py test --coverage --testr-args='{posargs}' +commands = + coverage erase + find . -type f -name "*.pyc" -delete + python setup.py testr --coverage --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx