summaryrefslogtreecommitdiffstats
path: root/nfvparser/tox.ini
diff options
context:
space:
mode:
authorshangxdy <shang.xiaodong@zte.com.cn>2017-09-28 13:55:00 +0800
committershangxdy <shang.xiaodong@zte.com.cn>2017-09-28 13:59:57 +0800
commit27112852c4fa2af8b704632cea01e5def9c23db4 (patch)
treee5c20b46f9a4df66a62cd1eb4f2fe03943251860 /nfvparser/tox.ini
parent000ea52b78b072435f01d67dd799023117e67a2e (diff)
Add coverage test item for tox
Currently there is no coverage report, so it's necessary to add covrage test for parser. JIRA: MODELING-24 Change-Id: Ied3657075998c1a501b3f6da43badc0b8b130571 Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'nfvparser/tox.ini')
-rw-r--r--nfvparser/tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/nfvparser/tox.ini b/nfvparser/tox.ini
index 8fc2a88..a937963 100644
--- a/nfvparser/tox.ini
+++ b/nfvparser/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=toscaparser --testr-args='{posargs}'
+commands =
+ coverage erase
+ python setup.py test --coverage --coverage-package-name=toscaparser --testr-args='{posargs}'
+ coverage report
[testenv:docs]
commands = python setup.py build_sphinx