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:
parent
89bbb9838f
commit
4c4511bfc8
@ -1,7 +1,8 @@
|
|||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
source = i18n
|
source = oslo_i18n
|
||||||
omit = i18n/tests/*,i18n/openstack/*
|
omit = oslo_i18n/tests/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
|
precision = 2
|
||||||
|
2
tox.ini
2
tox.ini
@ -26,7 +26,7 @@ commands = {posargs}
|
|||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
[testenv:cover]
|
[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]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
# E123, E125 skipped as they are invalid PEP-8.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user