summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini12
1 files changed, 8 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 97fbdd0..24d69ab 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,8 +12,8 @@ deps =
# run in a separate process
whitelist_externals = env
commands =
- python setup.py testr --slowest --testr-args='(?!tests.test_functional_eventlet)tests {posargs}'
- env TEST_EVENTLET=1 python setup.py testr --slowest --testr-args='tests.test_functional_eventlet'
+ stestr run --slowest (?!tests.test_functional_eventlet)tests {posargs}
+ env TEST_EVENTLET=1 stestr run --slowest tests.test_functional_eventlet
[testenv:py27]
basepython = python2.7
@@ -31,9 +31,13 @@ commands =
basepython = python3
deps = {[testenv]deps}
coverage
+setenv =
+ PYTHON=coverage run --source $project --parallel-mode
commands =
- python setup.py testr --coverage
-
+ stestr run '{posargs}'
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:venv]
basepython = python3