summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2018-07-13 13:40:43 +0200
committerLuigi Toscano <ltoscano@redhat.com>2018-07-13 13:40:43 +0200
commit1a8daf2b621278e4bc92d3f92053144df3754c05 (patch)
tree413ac59e6bf6e9faa5c307bd50d6b24de57cd32b
parent00448606a74d0fa9ce77bbd74352617f71b907b6 (diff)
downloadpython-saharaclient-1a8daf2b621278e4bc92d3f92053144df3754c05.tar.gz
Fix the cover tox target (switch to stestr)
The cover tox target was broken for a while. Switch it to use coverage+stestr. Patch proposed again with the wrong authorship information. For some reason I messed up them when I first sent out the patch, and I did not notice. If the author would have been the one reported in the original patch, I would have simply merged it with https://review.openstack.org/#/c/571480/ Change-Id: Ie907ec3b381fcc98955c6be4280caf3b5cb220d7
-rw-r--r--tox.ini12
1 files changed, 10 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 304c267..2470364 100644
--- a/tox.ini
+++ b/tox.ini
@@ -33,9 +33,17 @@ commands = oslo_debug_helper -t saharaclient/tests/unit {posargs}
[testenv:cover]
basepython = python3
+setenv =
+ {[testenv]setenv}
+ PYTHON=coverage run --source saharaclient --parallel-mode
commands =
- python setup.py test --coverage --testr-args='{posargs}'
- coverage report
+ coverage erase
+ find . -type f -name "*.pyc" -delete
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
+ coverage report
[tox:jenkins]
sitepackages = False