Fix coverage configuration and execution
A configuration error prevents the successful creation of code coverage. This patch corrects the .coveragerc omit setup and the tox package name generation. Closes-Bug: 1489164 Change-Id: I172708fe9048ed6208eb404974a5fa2e42bb810a
This commit is contained in:
parent
94d637cfcd
commit
4236c93750
@ -1,7 +1,7 @@
|
|||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
source = openstack
|
source = openstack
|
||||||
omit = openstack/tests/*,openstack/openstack/*
|
omit = openstack/tests/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
|
2
tox.ini
2
tox.ini
@ -38,7 +38,7 @@ commands = {posargs}
|
|||||||
; If this fails for you, you may be running an old version of tox.
|
; If this fails for you, you may be running an old version of tox.
|
||||||
; Run 'pip install tox' to install a newer version of tox.
|
; Run 'pip install tox' to install a newer version of tox.
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}'
|
commands = python setup.py test --coverage --coverage-package-name=openstack --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user