Show coverage report

... for easy reference. Also fix the missing coverage library.

Change-Id: I895c1372a17f708a1fb11198fe2f3461f4854f53
This commit is contained in:
Takashi Kajinami 2024-02-07 12:32:58 +09:00
parent 61021154d9
commit 52eb90c900
3 changed files with 5 additions and 0 deletions

2
.gitignore vendored

@ -6,5 +6,7 @@ heat_cfntools.egg-info/
.stestr/ .stestr/
subunit.log subunit.log
.tox .tox
.coverage
.coverage.*
AUTHORS AUTHORS
ChangeLog ChangeLog

@ -1,3 +1,4 @@
coverage!=4.4,>=4.0 # Apache-2.0
hacking>=6.1.0,<6.2.0 # Apache-2.0 hacking>=6.1.0,<6.2.0 # Apache-2.0
stestr>=2.0.0 stestr>=2.0.0
testtools>=0.9.34 testtools>=0.9.34

@ -20,10 +20,12 @@ setenv =
{[testenv]setenv} {[testenv]setenv}
PYTHON=coverage run --source heat_cfntools --parallel-mode PYTHON=coverage run --source heat_cfntools --parallel-mode
commands = commands =
coverage erase
stestr run {posargs} stestr run {posargs}
coverage combine coverage combine
coverage html -d cover coverage html -d cover
coverage xml -o cover/coverage.xml coverage xml -o cover/coverage.xml
coverage report
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}