From 93ab856f6640a2322846a6861a4dbe1085294667 Mon Sep 17 00:00:00 2001 From: Peter Portante Date: Wed, 4 Sep 2013 22:25:28 -0400 Subject: [PATCH] Add support for POST commit coverage runs Modeled on how keystone does it. Change-Id: Idad4f854f1bfb915a48ff69988553810a76accc0 Signed-off-by: Peter Portante --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index 3dfdf78940..6c7e723e88 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