Adjust tox cover to check for 80% coverage

In preparation for adding coverage to the octavia check gate,
adjusts the cover tox job to check for 80% coverage.

Change-Id: Ifa924da594af53d07f156aa0ffbb870389dcb513
This commit is contained in:
Michael Johnson 2017-04-18 15:28:10 -07:00
parent 4fd2647e21
commit e9f52d7853
1 changed files with 3 additions and 3 deletions

View File

@ -28,11 +28,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