diff --git a/tox.ini b/tox.ini index 064d5b0b23..8d971f8d72 100644 --- a/tox.ini +++ b/tox.ini @@ -16,6 +16,13 @@ deps = -r{toxinidir}/test-requirements.txt commands = nosetests test/unit {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 + [tox:jenkins] downloadcache = ~/cache/pip