Fix and unify cover environment
Fix cover environment and unify it accordingly to Project Testing Interface [1]. [1] https://governance.openstack.org/tc/reference/pti/python.html#coverage-jobs Change-Id: Ie82e6bf3964c84413e6af0c94e1212b7669de93b
This commit is contained in:
parent
460431085e
commit
fcb40ee791
11
tox.ini
11
tox.ini
@ -25,11 +25,14 @@ commands =
|
|||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
|
description = Calculates code coverage
|
||||||
|
setenv =
|
||||||
|
PYTHON=coverage run --source monascastatsd --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
coverage erase
|
stestr run {posargs}
|
||||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monascastatsd
|
coverage combine
|
||||||
coverage report
|
coverage html -d cover
|
||||||
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user