Add coverage-package-name to tox.ini for coverage

Recent pbrs support a coverage-package-name argument which allows you to
explicitly specify the package name to test coverage of. By default it
takes the project name (python-openstacksdk) and splits the "python-"
prefix off, leaving it to check coverage of the nonexistent
"openstacksdk" package. After this, "tox -e cover html" works and drops
the results in a cover/ folder under root.

Change-Id: I55e3fb274158aa37938329f2153c5c9597e64915
This commit is contained in:
Brian Curtin
2014-11-17 16:29:26 -06:00
parent 82f8f57d0f
commit a7a0219b77

View File

@@ -19,7 +19,7 @@ commands = flake8
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
commands = python setup.py testr --coverage --coverage-package-name=openstack --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx