tox: Re-add cover target

This was removed in an earlier patch but should not have been. Re-add it
now.

Change-Id: I68b785498a1a00f2301f610bbb8cb2e024416515
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2018-07-19 11:40:00 +01:00
parent 6f5c1ee8e4
commit 5c012fe168
1 changed files with 10 additions and 0 deletions

10
tox.ini
View File

@ -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