Fix coverage run with tox -ecover

We removed .testr.conf in 93746a9b28
and tox -ecover fails with error.

Change-Id: I31b00afffe38ab5c7591ba54c959349716df7c48
This commit is contained in:
rabi 2018-01-31 17:38:24 +05:30
parent d947f2fbb9
commit f91686c3a7
1 changed files with 8 additions and 1 deletions

View File

@ -49,8 +49,15 @@ commands =
commands = {posargs}
[testenv:cover]
setenv =
PYTHON=coverage run --source heat --parallel-mode
commands =
python setup.py testr --coverage --testr-args='^(?!heat_integrationtests){posargs}'
coverage erase
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]