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]
|
||||
branch = True
|
||||
source = brick
|
||||
omit = brick/tests/*,brick/openstack/*
|
||||
source = os_brick
|
||||
omit = os_brick/tests/*
|
||||
|
||||
[report]
|
||||
ignore_errors = True
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -29,6 +29,7 @@ nosetests.xml
|
||||
.venv
|
||||
tools/lintstack.head.py
|
||||
tools/pylint_exceptions
|
||||
cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
|
5
tox.ini
5
tox.ini
@ -33,7 +33,10 @@ commands = bash tools/lintstack.sh
|
||||
commands = {posargs}
|
||||
|
||||
[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]
|
||||
commands = python setup.py build_sphinx
|
||||
|
Loading…
Reference in New Issue
Block a user