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:
parent
8766b50965
commit
a52130de79
7
.coveragerc
Normal file
7
.coveragerc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = oslo_rootwrap
|
||||||
|
omit = oslo_rootwrap/tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore_errors = True
|
4
tox.ini
4
tox.ini
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user