Merge "Adjust tox cover to check for 80% coverage"
This commit is contained in:
commit
75cdd31f88
6
tox.ini
6
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue