From 7700c6ca53e1e2f81ac272f0d3261fb519029618 Mon Sep 17 00:00:00 2001 From: Surya Prakash Singh Date: Thu, 15 Dec 2016 18:47:24 +0530 Subject: Cover environment for kolla Enabled the cover environment for kolla in tox Closes-bug: #1650269 Change-Id: I732058b07d951227e7011f6f1a3d84fed594cfa7 --- tox.ini | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tox.ini') 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 -- cgit v1.2.3