summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini13
1 files changed, 11 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 3e75d51..cf6af85 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,6 +12,10 @@ setenv =
VIRTUAL_ENV={envdir}
BRANCH_NAME=master
CLIENT_NAME=python-cinderclient
+ OS_TEST_PATH=./cinderclient/tests/unit
+ OS_STDOUT_CAPTURE=1
+ OS_STDERR_CAPTURE=1
+ OS_TEST_TIMEOUT=60
passenv = *_proxy *_PROXY
deps = -r{toxinidir}/requirements.txt
@@ -33,9 +37,14 @@ whitelist_externals = bash
commands = {posargs}
[testenv:cover]
+setenv =
+ {[testenv]setenv}
+ PYTHON=coverage run --source cinderclient --parallel-mode
commands =
- python setup.py testr --coverage --testr-args='{posargs}'
- coverage report
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:docs]
commands=