Browse Source

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
changes/73/779273/6
Jiri Podivin 1 year ago
parent
commit
79955d1742
  1. 15
      tox.ini

15
tox.ini

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

Loading…
Cancel
Save