Merge "Fix the coverage HTML report"

This commit is contained in:
Jenkins 2017-04-27 01:34:41 +00:00 committed by Gerrit Code Review
commit 3c1bfbf44b

View File

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