Merge "Switch to coverage command"

This commit is contained in:
Zuul 2024-02-07 06:26:56 +00:00 committed by Gerrit Code Review
commit 913705f413
2 changed files with 10 additions and 2 deletions

View File

@ -5,4 +5,4 @@ omit = oslo_service/tests/*
[report]
ignore_errors = True
precision = 2

10
tox.ini
View File

@ -34,7 +34,15 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=oslo_service --testr-args='{posargs}'
setenv =
PYTHON=coverage run --source oslo_service --parallel-mode
commands =
coverage erase
stestr run --slowest {posargs}
coverage combine
coverage html -d cover
coverage report
coverage report --show-missing
[flake8]
# E123, E125 skipped as they are invalid PEP-8.