diff options
author | Luigi Toscano <ltoscano@redhat.com> | 2018-07-13 13:40:43 +0200 |
---|---|---|
committer | Luigi Toscano <ltoscano@redhat.com> | 2018-07-13 13:40:43 +0200 |
commit | 1a8daf2b621278e4bc92d3f92053144df3754c05 (patch) | |
tree | 413ac59e6bf6e9faa5c307bd50d6b24de57cd32b | |
parent | 00448606a74d0fa9ce77bbd74352617f71b907b6 (diff) | |
download | python-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.ini | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |