Merge "Display coverage report"

This commit is contained in:
Zuul 2024-02-07 06:23:07 +00:00 committed by Gerrit Code Review
commit c6cf187147
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}
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}