improve tox -e cover

add coverage report to see test coverage after running tox -e cover.

Change-Id: I9d440f8c2f38893a98a1665009b0bb93ce079edb
This commit is contained in:
Manjeet Singh Bhatia 2015-12-18 19:25:37 +00:00
parent 2119b68610
commit 177d8a581f
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[run]
branch = True
source = neutronclient
omit = neutronclient/openstack/*,neutronclient/tests/*
omit = neutronclient/tests/*
[report]
ignore-errors = True
ignore_errors = True

View File

@ -33,7 +33,9 @@ setenv =
OS_NEUTRONCLIENT_EXEC_DIR = {envdir}/bin
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
commands =
python setup.py test --coverage --coverage-package-name=neutronclient --testr-args='{posargs}'
coverage report
[testenv:docs]
commands=