summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-09-24 19:27:02 +0200
committerAndreas Jaeger <aj@suse.com>2018-10-01 20:32:12 +0200
commit53576ec07ab0f781d813876d69d17aafb8d3592d (patch)
tree5493f86bc7caed7405b3d0340c7d42e85131dcf9
parent947d4b5dab04a919d442fc2216093f634469e76b (diff)
downloadtrove-53576ec07ab0f781d813876d69d17aafb8d3592d.tar.gz
Fix cover job
The job is currently broken, it runs with testr while we switched to stestr. Use the usual setup for coverage as done by other projects using stestr in cover. Previously, we run with concurrency=1 - continue to run in serial mode. Change-Id: I6e389db5aed8db25b49906b2479af081237fc909
-rw-r--r--tox.ini10
1 files changed, 6 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index d0a06def..ea2b4855 100644
--- a/tox.ini
+++ b/tox.ini
@@ -48,13 +48,15 @@ commands = oslo_debug_helper {posargs}
[testenv:cover]
basepython = python3
+setenv =
+ {[testenv]setenv}
+ PYTHON=coverage run --source trove
commands =
- {[testenv]commands}
coverage erase
- python setup.py testr --coverage --testr-args="--concurrency=1"
+ stestr run --serial {posargs}
coverage run -a run_tests.py
- coverage html
- coverage xml
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
coverage report
[testenv:venv]