diff options
author | Ronald Bradford <ronald.bradford@gmail.com> | 2015-10-01 09:37:10 -0400 |
---|---|---|
committer | Ronald Bradford <ronald.bradford@gmail.com> | 2015-10-08 17:29:42 -0400 |
commit | e00868db72e30b79e2d259149165a2d4b84e4476 (patch) | |
tree | 244779805e7d2b25d55dfe1a4f894c5da740009c | |
parent | 52151aeebd20440b19444db096dcc0332af5141f (diff) | |
download | oslo-db-e00868db72e30b79e2d259149165a2d4b84e4476.tar.gz |
Fix coverage configuration and execution
A number of configuration errors prevent the successful creation of code
coverage. This corrects the .coveragerc source/omit setup and the tox
package name generation.
http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html
Change-Id: I677ca6ed73096cf408455cd0968a488a1cbab636
-rw-r--r-- | .coveragerc | 5 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.coveragerc b/.coveragerc index ebb4e2d..66c73ea 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,8 @@ [run] branch = True -source = db -omit = db/tests/*,db/openstack/* +source = oslo_db +omit = oslo_db/tests/* [report] ignore_errors = True +precision = 2 @@ -41,7 +41,7 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = python setup.py test --coverage --coverage-package-name=oslo_db --testr-args='{posargs}' [testenv:docs] commands = |