Merge "Fix coverage run with tox -ecover"

This commit is contained in:
Zuul 2018-02-07 15:47:44 +00:00 committed by Gerrit Code Review
commit 579ce5c477

@ -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]