summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2018-07-19 11:40:00 +0100
committerStephen Finucane <sfinucan@redhat.com>2018-07-19 11:40:00 +0100
commit5c012fe16878859d9d6be1445f5f8772f010c80f (patch)
tree749f8d74465afba465175f1b00b45f1687009582 /tox.ini
parent6f5c1ee8e4e9c1c05f16b7dfe57c3245ad38b0cf (diff)
downloadpbr-5c012fe16878859d9d6be1445f5f8772f010c80f.tar.gz
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>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 10 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index cf27d98..d97e6ff 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