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 e5c6929626
2 changed files with 7 additions and 1 deletions

4
.coveragerc Normal file
View File

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

View File

@ -27,12 +27,14 @@ commands =
deps = {[testenv]deps}
coverage
setenv =
PYTHON=coverage run --source $project --parallel-mode
PYTHON=coverage run --source oslo_rootwrap --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
[testenv:venv]
commands = {posargs}