Merge "Use .coveragerc file"

This commit is contained in:
Zuul 2024-04-18 07:59:33 +00:00 committed by Gerrit Code Review
commit 5fabff87d1
2 changed files with 10 additions and 3 deletions

7
.coveragerc Normal file
View File

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

View File

@ -64,13 +64,13 @@ commands =
[testenv:cover]
setenv = {[testenv]setenv}
PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode
PYTHON=coverage run --source ironic --parallel-mode
commands =
coverage erase
stestr run --parallel-class {posargs}
coverage combine
coverage report --omit='*tests*'
coverage html -d ./cover --omit='*tests*'
coverage report
coverage html -d ./cover
[testenv:genconfig]
sitepackages = False