Merge "Adjust tox cover to check for 80% coverage"

This commit is contained in:
Jenkins 2017-04-20 14:05:21 +00:00 committed by Gerrit Code Review
commit 75cdd31f88
1 changed files with 3 additions and 3 deletions

View File

@ -27,11 +27,11 @@ commands =
[testenv:cover]
whitelist_externals = sh
commands =
coverage erase
sh -c 'COVERAGE_FILE={toxinidir}/.coverage-py27 python setup.py testr --coverage --testr-args='{posargs}''
sh -c 'COVERAGE_FILE={toxinidir}/.coverage-functional OS_TEST_PATH={toxinidir}/octavia/tests/functional python setup.py testr --coverage --testr-args='{posargs}''
sh -c 'ls -al'
coverage combine --debug=dataio {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional
coverage html -d cover
coverage combine {toxinidir}/.coverage-py27 {toxinidir}/.coverage-functional
coverage report --fail-under=80 --skip-covered
[testenv:functional]
setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional