Merge "Fix up tox -e cover to use coverage"

This commit is contained in:
Zuul 2023-12-19 13:11:27 +00:00 committed by Gerrit Code Review
commit c321205073
3 changed files with 16 additions and 1 deletions

7
.converagerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = oslo_limit
omit = oslo_limit/tests/*
[report]
ignore_errors = True

View File

@ -7,6 +7,8 @@ hacking>=3.0.1,<3.1.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
# Bandit security code scanner
bandit>=1.7.0,<1.8.0 # Apache-2.0

View File

@ -34,7 +34,13 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=oslo_limit --testr-args='{posargs}'
setenv =
PYTHON=coverage run --source oslo_limit --parallel-mode
commands =
stestr run --slowest {posargs}
coverage combine
coverage html -d cover
coverage report
[testenv:releasenotes]
allowlist_externals = rm