Fix coverage configuration and execution

A number of configuration errors prevent the successful creation of code
coverage. This corrects the .coveragerc source/omit setup and the tox
package name generation.

http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html

Change-Id: I02ba7efe7e2de15fb68fae8d6c187065ac3c60ee
This commit is contained in:
Ronald Bradford 2015-10-01 09:35:20 -04:00
parent b901942231
commit 86b76639ac
3 changed files with 10 additions and 1 deletions

8
.coveragerc Normal file
View File

@ -0,0 +1,8 @@
[run]
branch = True
source = oslo_config
omit = oslo_config/tests/*
[report]
ignore_errors = True
precision = 2

1
.gitignore vendored
View File

@ -7,6 +7,7 @@ ChangeLog
*.log *.log
.tox .tox
.coverage .coverage
cover
oslo.config.egg-info/ oslo.config.egg-info/
build/ build/
doc/build/ doc/build/

View File

@ -14,7 +14,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=oslo_config --testr-args='{posargs}'
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}