aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSurya Prakash Singh <surya.singh@nectechnologies.in>2017-01-12 18:15:04 +0530
committerSurya Prakash Singh <surya.singh@nectechnologies.in>2017-01-16 11:02:20 +0000
commit7b36b042dd07adfb5208c0700cc0deb474ef97dd (patch)
tree9558993f15a7b48add6748e5700280429096416b /tox.ini
parente6b235e1c7e0b98fa771d72137ac95af938f5781 (diff)
downloadkolla-ansible-7b36b042dd07adfb5208c0700cc0deb474ef97dd.tar.gz
kolla-ansible-7b36b042dd07adfb5208c0700cc0deb474ef97dd.zip
Cover environment for kolla-ansible
Enabled the cover environment for kolla-ansible in tox Change-Id: Ic9f0dbc14ff9f4ef3d82bd06eb58fc145cb121d9 Closes-bug: #1655948
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 8 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 89fc377c4..2241814ba 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