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
View File

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

View File

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

View File

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