summaryrefslogtreecommitdiffstats
path: root/tosca2heat/heat-translator/tox.ini
diff options
context:
space:
mode:
authorxiaodong shang <shang.xiaodong@zte.com.cn>2017-10-09 08:26:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-09 08:26:14 +0000
commit3fb494c0b8187afc3b76740c274336ec1947e200 (patch)
treeb2458bb0c6e0ca072824e4d48aa727ba37a66bc5 /tosca2heat/heat-translator/tox.ini
parentb991369780f92cf7103881ce29cf589bd208269b (diff)
parent9156f6afb5832175762ea2ab8d21e54520665868 (diff)
Merge "Add coverage test item"
Diffstat (limited to 'tosca2heat/heat-translator/tox.ini')
-rw-r--r--tosca2heat/heat-translator/tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/tosca2heat/heat-translator/tox.ini b/tosca2heat/heat-translator/tox.ini
index 6ba58c3..447eb6e 100644
--- a/tosca2heat/heat-translator/tox.ini
+++ b/tosca2heat/heat-translator/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 1.6
-envlist = py27,pep8
+envlist = pep8,py27,cover
skipsdist = True
[testenv]
@@ -19,7 +19,10 @@ commands = flake8
commands = {posargs}
[testenv:cover]
-commands = python setup.py testr --coverage --coverage-package-name=translator --testr-args='{posargs}'
+commands =
+ coverage erase
+ python setup.py test --coverage --coverage-package-name=translator --testr-args='{posargs}'
+ coverage report
[testenv:docs]
commands = python setup.py build_sphinx