Merge "improve tox -e cover"

This commit is contained in:
Jenkins
2015-12-30 05:47:47 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -33,7 +33,9 @@ setenv =
OS_NEUTRONCLIENT_EXEC_DIR = {envdir}/bin OS_NEUTRONCLIENT_EXEC_DIR = {envdir}/bin
[testenv:cover] [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] [testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html commands = sphinx-build -W -b html doc/source doc/build/html