Commit c12f4dd8 authored by Joshua Powers's avatar Joshua Powers Committed by Scott Moser

Add coverage collection to tox unit tests.

First step in increasing coverage is knowing what coverage
is currently at.  By default, tox only runs coverage on py3 as it
is slower to run with coverage.
parent f7a57562
......@@ -4,3 +4,4 @@ dist
*.pyc
__pycache__
.tox
.coverage
......@@ -3,6 +3,7 @@ httpretty>=0.7.1
mock
nose
unittest2
coverage
# Only needed if you want to know the test times
# nose-timer
......
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment