Fix coverage report generation
Previously the coverage report would not be generated as the dashes in the package name confused it. We also add a .coveragerc so that the report is generated on just the code. Change-Id: I27c0320dca1b3ad26e24d9df09b8f5954e149991
This commit is contained in:
parent
c4b64899e3
commit
e061e33490
|
@ -0,0 +1,7 @@
|
||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = os_apply_config
|
||||||
|
omit = os_apply_config/tests/*,os_apply_config/openstack/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore-errors = True
|
2
tox.ini
2
tox.ini
|
@ -22,7 +22,7 @@ commands = flake8
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage
|
python setup.py test --coverage --coverage-package-name=os_apply_config
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
Loading…
Reference in New Issue