From 1a8daf2b621278e4bc92d3f92053144df3754c05 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Fri, 13 Jul 2018 13:40:43 +0200 Subject: 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 --- tox.ini | 12 ++++++++++-- 1 file 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 -- cgit v1.2.1