Fix up tox -e cover to use coverage

Change-Id: I4516a958efd4b14a6d0f9f8a7763311f134c5215
This commit is contained in:
John Garbutt 2023-05-02 14:30:48 +01:00
parent f28b01e652
commit 027d5d263c
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