Fix coverage report

Coverage can't handle package names that have dashes, as it uses the
package name to look for the base module name. So we need to pass in the
base module name as it is imported.

Change-Id: I2840eea85acaee2d05cab47fb67010e002a14bc0
This commit is contained in:
Clint Byrum 2015-02-28 07:45:01 -08:00
parent e483abccbb
commit f99dc5f293

View File

@ -19,7 +19,7 @@ commands = flake8
commands = {posargs} commands = {posargs}
[testenv:cover] [testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}' commands = python setup.py test --coverage --coverage-package-name=os_client_config --testr-args='{posargs}'
[testenv:docs] [testenv:docs]
commands = python setup.py build_sphinx commands = python setup.py build_sphinx
@ -31,4 +31,4 @@ commands = python setup.py build_sphinx
show-source = True show-source = True
ignore = E123,E125,H803 ignore = E123,E125,H803
builtins = _ builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build