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: I9cde2c00785596f3971378520cbc0ea96e141ac1
This commit is contained in:
parent
8fbdb9423a
commit
3fac289159
11
tox.ini
11
tox.ini
|
@ -23,11 +23,14 @@ commands =
|
|||
|
||||
[testenv:cover]
|
||||
description = Calculates code coverage
|
||||
basepython = python2.7
|
||||
basepython = python3
|
||||
setenv =
|
||||
PYTHON=coverage run --source monasca_log_api --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
python setup.py test --coverage --testr-args='{posargs}' --coverage-package-name=monasca_log_api
|
||||
coverage report
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
||||
[testenv:debug]
|
||||
basepython = python3
|
||||
|
|
Loading…
Reference in New Issue