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: Iadda5371671b77307d27089d19104ac194aad46f
This commit is contained in:
Ronald Bradford 2015-10-01 09:41:18 -04:00
parent 89bbb9838f
commit 4c4511bfc8
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,8 @@
[run]
branch = True
source = i18n
omit = i18n/tests/*,i18n/openstack/*
source = oslo_i18n
omit = oslo_i18n/tests/*
[report]
ignore_errors = True
precision = 2

View File

@ -26,7 +26,7 @@ commands = {posargs}
commands = python setup.py build_sphinx
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = python setup.py test --coverage --coverage-package-name=oslo_i18n --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.