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:
Clint Byrum 2014-06-03 11:06:39 -07:00
parent c4b64899e3
commit e061e33490
2 changed files with 8 additions and 1 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = os_apply_config
omit = os_apply_config/tests/*,os_apply_config/openstack/*
[report]
ignore-errors = True

View File

@ -22,7 +22,7 @@ commands = flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
python setup.py test --coverage --coverage-package-name=os_apply_config
[testenv:venv]
commands = {posargs}