Fix 'No data to report' error
Remove 2 unnecessary commands in 'testenv:cover' of tox.ini. HTML coverage reports can be generated in 'cover' directory by 'python setup.py testr --coverage' only without the removed commands. Change-Id: Ib9539f845aad29269a9cb07db719b22e35f7bbeb Closes-Bug: #1613256
This commit is contained in:
5
tox.ini
5
tox.ini
@@ -60,10 +60,7 @@ commands = oslopolicy-sample-generator --config-file=etc/nova/nova-policy-genera
|
|||||||
# tests conflict with coverage.
|
# tests conflict with coverage.
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
python setup.py testr --coverage \
|
python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
--testr-args='{posargs}'
|
|
||||||
coverage combine
|
|
||||||
coverage html --include='nova/*' -d covhtml -i
|
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Reference in New Issue
Block a user