summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2015-03-12 13:45:11 -0700
committerClint Byrum <clint@fewbar.com>2015-03-12 16:38:51 -0700
commit0f87f5cb15ae342d1c63e7e1c8759d03c7905f02 (patch)
tree6af7b3cc722a745ee6cf42717dc67d55446c6909 /tox.ini
parent4a3540599eb084b7170ea7be6d12977d368298ef (diff)
downloadoslo-messaging-0f87f5cb15ae342d1c63e7e1c8759d03c7905f02.tar.gz
Fix coverage report generation
Coverage is a little bit confused by oslo.messaging as the pypi package name. So we have to be explicit here or we get no data collection. Adding a .coveragerc helps give the report more context as we don't care about coverage in the tests or oslo-incubator. Change-Id: I3d24187890efd7aecad7fcb7a2974b87e89ef6ff
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 5cbe260..c01a8d0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@ commands = flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
- python setup.py testr --coverage
+ python setup.py test --coverage --coverage-package-name=oslo_messaging --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}