summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-11-27 16:37:21 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2017-11-29 07:02:03 +0100
commit06ab9f1aaed50a5c78f3ed10f56cac8cdb2c75c7 (patch)
tree10da1ab14bbd0f3663addd69295976500df6ec50
parent12583eeea0b14325328950fc981d704e36198919 (diff)
Force Framework to be fully covered
Change-Id: Ida120fe28ea7860758a218189d905bebee2e8ba5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--tox.ini15
1 files changed, 14 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 9acfffe4c..ea87583e8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,pep8,pylint,py35,py27,perm
+envlist = docs,pep8,pylint,py35,py27,perm,cover
[testenv]
usedevelop = True
@@ -49,6 +49,19 @@ dirs =
functest/tests/unit/utils/test_decorators.py
commands = nosetests {[testenv:py35]dirs}
+[testenv:cover]
+basepython = python2.7
+dirs =
+ functest/tests/unit/core
+ functest/tests/unit/odl
+ functest/tests/unit/utils/test_decorators.py
+commands = nosetests --with-coverage --cover-tests \
+ --cover-package functest.core \
+ --cover-package functest.opnfv_tests.sdn.odl \
+ --cover-package functest.tests.unit \
+ --cover-package functest.utils.decorators \
+ --cover-min-percentage 100 {[testenv:cover]dirs}
+
[testenv:perm]
basepython = python2.7
whitelist_externals = bash