Coverage now uses stestr.

This brings coverage measuring in line with
the standard tox testing process.

Closes-bug: #1922726

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I6bf27ffe88ff55b62e202678340a324058d30051
This commit is contained in:
Jiri Podivin 2021-03-08 14:39:01 +01:00
parent c876cbba8d
commit 79955d1742
1 changed files with 10 additions and 5 deletions

15
tox.ini
View File

@ -105,11 +105,16 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:cover]
deps =
-r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
-r {toxinidir}/molecule-requirements.txt
commands = python setup.py test --coverage --testr-args='{posargs}'
setenv =
PYTHON=coverage run --source tripleo_validations --parallel-mode --branch
HOME={envdir}
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:docs]
deps =