diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-11-27 16:37:21 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-11-29 07:02:03 +0100 |
commit | 06ab9f1aaed50a5c78f3ed10f56cac8cdb2c75c7 (patch) | |
tree | 10da1ab14bbd0f3663addd69295976500df6ec50 /tox.ini | |
parent | 12583eeea0b14325328950fc981d704e36198919 (diff) |
Force Framework to be fully covered
Change-Id: Ida120fe28ea7860758a218189d905bebee2e8ba5
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 |