Fix coverage generation
This patch makes a few small changes that will get tox -ecover working again. Change-Id: If67b0ad11226ff0f5774ace968277cd400f78655
This commit is contained in:
parent
dbf77fba10
commit
9640b73cc4
@ -1,7 +1,7 @@
|
|||||||
[run]
|
[run]
|
||||||
branch = True
|
branch = True
|
||||||
source = brick
|
source = os_brick
|
||||||
omit = brick/tests/*,brick/openstack/*
|
omit = os_brick/tests/*
|
||||||
|
|
||||||
[report]
|
[report]
|
||||||
ignore_errors = True
|
ignore_errors = True
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,6 +29,7 @@ nosetests.xml
|
|||||||
.venv
|
.venv
|
||||||
tools/lintstack.head.py
|
tools/lintstack.head.py
|
||||||
tools/pylint_exceptions
|
tools/pylint_exceptions
|
||||||
|
cover
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
5
tox.ini
5
tox.ini
@ -33,7 +33,10 @@ commands = bash tools/lintstack.sh
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
# To see the report of missing coverage add to commands
|
||||||
|
# coverage report --show-missing
|
||||||
|
commands =
|
||||||
|
python setup.py test --coverage --coverage-package-name=os_brick --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
Loading…
Reference in New Issue
Block a user