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:
Walter A. Boring IV 2016-03-22 16:24:36 -07:00 committed by Walter A. Boring IV (hemna)
parent dbf77fba10
commit 9640b73cc4
3 changed files with 7 additions and 3 deletions

View File

@ -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
View File

@ -29,6 +29,7 @@ nosetests.xml
.venv
tools/lintstack.head.py
tools/pylint_exceptions
cover
# Translations
*.mo

View File

@ -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