summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--test-requirements.txt1
-rw-r--r--tox.ini3
3 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 77eb9c74..865cac15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ dist
*.pyc
__pycache__
.tox
+.coverage
diff --git a/test-requirements.txt b/test-requirements.txt
index 6bf38940..0e7fc8fb 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -3,6 +3,7 @@ httpretty>=0.7.1
mock
nose
unittest2
+coverage
# Only needed if you want to know the test times
# nose-timer
diff --git a/tox.ini b/tox.ini
index 277858ed..08318a9f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -19,6 +19,9 @@ setenv =
[testenv:py3]
basepython = python3
+commands = {envpython} -m nose \
+ {posargs:--with-coverage --cover-erase \
+ --cover-branches --cover-package=cloudinit --cover-inclusive}
[testenv:py26]
commands = nosetests {posargs:tests}