Fix coverage run with tox -ecover
We removed .testr.conf in 93746a9b2895d44fd105ba26ae77ddffbe2db167 and tox -ecover fails with error. Change-Id: I31b00afffe38ab5c7591ba54c959349716df7c48
This commit is contained in:
parent
d947f2fbb9
commit
f91686c3a7
9
tox.ini
9
tox.ini
@ -49,8 +49,15 @@ commands =
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source heat --parallel-mode
|
||||||
commands =
|
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
|
coverage report
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user