From d70b1d6da014c8fa9216039f38dcd96cab7cba3c Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Sun, 23 Apr 2017 11:12:50 -0700 Subject: [PATCH] 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 --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index fc39918de5..aa2a4db622 100644 --- a/tox.ini +++ b/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}'' 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