summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaoxing Meng <meng.zhaoxing1@zte.com.cn>2017-09-28 06:11:50 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-28 06:11:50 +0000
commitcddb34a7d383b5c6eaae9e1fd40c84f7c76aa975 (patch)
tree8f5490b15b305de9ee684d12f4bc2effb4cdd3ab
parentee9bc3566956f80e3aaa997533a222273bed64b3 (diff)
parent27112852c4fa2af8b704632cea01e5def9c23db4 (diff)
Merge "Add coverage test item for tox"
-rw-r--r--nfvparser/.gitignore3
-rw-r--r--nfvparser/tox.ini7
2 files changed, 7 insertions, 3 deletions
diff --git a/nfvparser/.gitignore b/nfvparser/.gitignore
index c172104..2fe4959 100644
--- a/nfvparser/.gitignore
+++ b/nfvparser/.gitignore
@@ -17,6 +17,7 @@ develop-eggs
.installed.cfg
lib
lib64
+cover
# Installer logs
pip-log.txt
@@ -53,4 +54,4 @@ ChangeLog
*.iml
# OSX
-.DS_Store \ No newline at end of file
+.DS_Store
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