Use .coveragerc file
... instead of defining the omit options multiple times. Change-Id: I14c921454dd50854da64bd1ed039d0cdcbb27f75
This commit is contained in:
parent
9050f66a1b
commit
055224c5e2
7
.coveragerc
Normal file
7
.coveragerc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = ironic
|
||||||
|
omit = ironic/tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore_errors = True
|
6
tox.ini
6
tox.ini
@ -62,13 +62,13 @@ commands =
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = {[testenv]setenv}
|
setenv = {[testenv]setenv}
|
||||||
PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode
|
PYTHON=coverage run --source ironic --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
coverage erase
|
||||||
stestr run --parallel-class {posargs}
|
stestr run --parallel-class {posargs}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage report --omit='*tests*'
|
coverage report
|
||||||
coverage html -d ./cover --omit='*tests*'
|
coverage html -d ./cover
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
|
Loading…
Reference in New Issue
Block a user