diff --git a/tox.ini b/tox.ini index cf27d987..d97e6ff7 100644 --- a/tox.ini +++ b/tox.ini @@ -31,6 +31,16 @@ commands = basepython = python3 commands = {posargs} +[testenv:cover] +basepython = python3 +setenv = + PYTHON=coverage run --source pbr --parallel-mode +commands = + stestr run {posargs} + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml + [flake8] # H405 multi line docstring summary not separated with an empty line # H904 "Wrap lines in parentheses and not a backslash for line continuation