Fix the coverage HTML report

The coverage job is only showing partial results in the HTML version
of the report.  This patch corrects that by generating an HTML report
with the combined results.

Change-Id: I66b563d8d17a982ec3701626e8ac60c52a01a363
This commit is contained in:
Michael Johnson 2017-04-23 11:12:50 -07:00
parent bb54b26c17
commit d70b1d6da0

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}''
coverage combine {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional
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]
setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional