aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--tox.ini8
2 files changed, 10 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f0a575157..2495270b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,8 @@ AUTHORS
ChangeLog
doc/build
etc/kolla/kolla-build.conf
+.coverage
+cover/
# Files generated by Vagrant
dev/vagrant/Vagrantfile.custom
diff --git a/tox.ini b/tox.ini
index c7e1f458f..549c4894c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,6 +21,14 @@ commands =
[testenv:debug]
commands = oslo_debug_helper {posargs}
+[testenv:cover]
+setenv = VIRTUAL_ENV={envdir}
+ NOSE_WITH_COVERAGE=1
+ NOSE_COVER_BRANCHES=1
+ NOSE_COVER_HTML=1
+ NOSE_COVER_HTML_DIR={toxinidir}/cover
+commands = python setup.py testr --coverage --testr-args='{posargs}'
+
[testenv:pep8]
commands =
{toxinidir}/tools/run-bashate.sh