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:
Witold Bedyk 2018-06-29 13:57:46 +02:00
parent 8fbdb9423a
commit 3fac289159
1 changed files with 7 additions and 4 deletions

11
tox.ini
View File

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