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}
|
||||
|
||||
[testenv:cover]
|
||||
|
||||
description = Calculates code coverage
|
||||
setenv =
|
||||
PYTHON=coverage run --source monascastatsd --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monascastatsd
|
||||
coverage report
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[testenv:debug]
|
||||
commands =
|
||||
|
|
Loading…
Reference in New Issue