Fix coverage tests

Coverage tests seems to be broken on a fresh clone of castellan.
Copying the coverage config from Oslo.Config repo.

Change-Id: I9a01313d3d1d95726372d5d5f2ac8ab5c3cd13dc
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
This commit is contained in:
Moisés Guimarães de Medeiros 2020-02-07 15:56:58 +01:00
parent 141e7e4209
commit 1d06f31f97
1 changed files with 4 additions and 3 deletions

View File

@ -41,13 +41,14 @@ commands = oslo_debug_helper {posargs}
[testenv:cover]
setenv =
PYTHON=coverage run --source $project --parallel-mode
PYTHON=coverage run --source castellan --parallel-mode
commands =
stestr run {posargs}
coverage erase
{[testenv]commands}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
coverage report --show-missing
[testenv:docs]
# This environment is called from CI scripts to test and publish