summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini25
1 files changed, 15 insertions, 10 deletions
diff --git a/tox.ini b/tox.ini
index 8ce7ce8c..8b5454f4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,8 +14,8 @@ deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
-commands = ostestr {posargs}
-whitelist_externals = ostestr
+commands = stestr run {posargs}
+whitelist_externals = stestr
[testenv:fast8]
# Use same environment directory as pep8 env to save space and install time
@@ -63,20 +63,20 @@ commands =
pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config"
pip install -q -e "git+file://{toxinidir}/../python-openstacksdk#egg=openstacksdk"
pip freeze
- ostestr {posargs}
-whitelist_externals = ostestr
+ stestr run {posargs}
+whitelist_externals = stestr
[testenv:functional]
setenv = OS_TEST_PATH=./openstackclient/tests/functional
passenv = OS_*
-whitelist_externals = openstackclient/tests/functional/run_ostestr.sh
+whitelist_externals = openstackclient/tests/functional/run_stestr.sh
commands =
- {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs}
+ {toxinidir}/openstackclient/tests/functional/run_stestr.sh {posargs}
[testenv:functional-tips]
setenv = OS_TEST_PATH=./openstackclient/tests/functional
passenv = OS_*
-whitelist_externals = openstackclient/tests/functional/run_ostestr.sh
+whitelist_externals = openstackclient/tests/functional/run_stestr.sh
commands =
pip install -q -U -e "git+file://{toxinidir}/../cliff#egg=cliff"
pip install -q -U -e "git+file://{toxinidir}/../keystoneauth#egg=keystoneauth"
@@ -84,15 +84,20 @@ commands =
pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config"
pip install -q -U -e "git+file://{toxinidir}/../python-openstacksdk#egg=openstacksdk"
pip freeze
- {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs}
+ {toxinidir}/openstackclient/tests/functional/run_stestr.sh {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
+setenv =
+ VIRTUAL_ENV={envdir}
+ PYTHON=coverage run --source openstackclient --parallel-mode
commands =
- python setup.py test --coverage --testr-args='{posargs}'
- coverage report
+ stestr -q run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:debug]
passenv = OS_*