Merge "Fix the coverage HTML report"
This commit is contained in:
commit
3c1bfbf44b
3
tox.ini
3
tox.ini
@ -32,6 +32,9 @@ commands =
|
|||||||
sh -c 'COVERAGE_FILE={toxinidir}/.coverage-functional OS_TEST_PATH={toxinidir}/octavia/tests/functional python setup.py testr --coverage --testr-args='{posargs}''
|
sh -c 'COVERAGE_FILE={toxinidir}/.coverage-functional OS_TEST_PATH={toxinidir}/octavia/tests/functional python setup.py testr --coverage --testr-args='{posargs}''
|
||||||
coverage combine {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional
|
coverage combine {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional
|
||||||
coverage report --fail-under=80 --skip-covered
|
coverage report --fail-under=80 --skip-covered
|
||||||
|
# Generate a new HTML report with the combined results
|
||||||
|
# otherwise the HTML report will only show partial results
|
||||||
|
coverage html -d cover
|
||||||
|
|
||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional
|
setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional
|
||||||
|
Loading…
Reference in New Issue
Block a user