Change tox.ini coverage to always generate html

This patch changes the order of the tox "cover" task to always generate
the html report. Prior to this patch if the coverage failed the test
threshold it would abort before the html version was created.

Change-Id: Ie1108a8b655faec33906b6be4b4932ff8beb5994
This commit is contained in:
Michael Johnson 2018-06-21 16:28:56 -07:00
parent 6a8799c3dc
commit bfba887add

View File

@ -38,11 +38,11 @@ commands =
sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/unit stestr run {posargs}'
sh -c 'OS_TEST_PATH={toxinidir}/octavia/tests/functional stestr run {posargs}'
coverage combine
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
coverage xml -o cover/coverage.xml
coverage report --fail-under=80 --skip-covered
[testenv:functional]
setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional