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
This commit is contained in:
John Hua 2016-11-11 10:06:55 +08:00
parent 2660fb15c3
commit 2c42ad62de

View File

@ -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