summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald Bradford <ronald.bradford@gmail.com>2015-10-02 11:34:54 -0400
committerRonald Bradford <ronald.bradford@gmail.com>2015-10-06 09:14:07 -0400
commitb5e355fcecdf7727fe33e355c4f87d1971b5fef5 (patch)
tree9ca152d4a7de2060315c842a901bfb4655c99c05
parent0bc2d2393ba78a2feb616a16d7878808a9e014e4 (diff)
downloadoslotest-1.12.0.tar.gz
Fix coverage configuration and execution1.12.0
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: Ia337cd014d4130f60a88fc988eabcc85d9142834
-rw-r--r--.coveragerc7
-rw-r--r--.gitignore1
-rw-r--r--tox.ini2
3 files changed, 6 insertions, 4 deletions
diff --git a/.coveragerc b/.coveragerc
index e89203d..2a6cd7b 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,7 +1,8 @@
[run]
branch = True
-source = test
-omit = test/tests/*,test/openstack/*
+source = oslotest
+omit = oslotest/tests/*
[report]
-ignore-errors = True \ No newline at end of file
+ignore_errors = True
+precision = 2
diff --git a/.gitignore b/.gitignore
index cc4c84e..f6cbf5c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
+cover
.tox
nosetests.xml
.testrepository
diff --git a/tox.ini b/tox.ini
index 6ee5223..63c8bed 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 --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}