Fix: the tox cover job was not updating coverage report.
This patch updates the cover command to remove older coverage reports before running. Change-Id: I31f8d11c2c1fd9f8b36ee8090f321020e48c60d3
This commit is contained in:
parent
e7df9c4819
commit
ae7d7bb2ca
6
tox.ini
6
tox.ini
|
@ -28,6 +28,10 @@ commands = check-uuid --package patrole_tempest_plugin.tests.api --fix
|
|||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = rm -rf *.pyc
|
||||
rm -rf cover
|
||||
rm -f .coverage
|
||||
nosetests {posargs}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
NOSE_WITH_COVERAGE=1
|
||||
NOSE_COVER_BRANCHES=1
|
||||
|
@ -36,7 +40,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||
NOSE_COVER_HTML_DIR={toxinidir}/cover
|
||||
NOSE_WHERE=patrole_tempest_plugin/tests/unit
|
||||
whitelist_externals = nosetests
|
||||
commands = nosetests {posargs}
|
||||
rm
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
|
|
Loading…
Reference in New Issue