Browse Source

Fix coverage generation

This patch makes a few small changes that will get tox -ecover
working again.

Change-Id: If67b0ad11226ff0f5774ace968277cd400f78655
changes/07/296107/5
Walter A. Boring IV 6 years ago
committed by Walter A. Boring IV (hemna)
parent
commit
9640b73cc4
  1. 4
      .coveragerc
  2. 1
      .gitignore
  3. 5
      tox.ini

4
.coveragerc

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

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

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…
Cancel
Save