Display coverage report

... for easy reference. Also make sure old data is purged.

Also adds .coveragerc which is present in the other repos.

Change-Id: Ifee20fc38e9c8bb04c20ff4e690e652b9256d46f
This commit is contained in:
Takashi Kajinami 2024-02-07 12:21:49 +09:00
parent 8766b50965
commit a52130de79
2 changed files with 10 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = oslo_rootwrap
omit = oslo_rootwrap/tests/*
[report]
ignore_errors = True

View File

@ -27,12 +27,14 @@ commands =
deps = {[testenv]deps} deps = {[testenv]deps}
coverage coverage
setenv = setenv =
PYTHON=coverage run --source $project --parallel-mode PYTHON=coverage run --source oslo_rootwrap --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 --show-missing
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}