|
14 | 14 | -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} |
15 | 15 | -r{toxinidir}/test-requirements.txt |
16 | 16 | -r{toxinidir}/requirements.txt |
17 | | -commands = ostestr {posargs} |
18 | | -whitelist_externals = ostestr |
| 17 | +commands = stestr run {posargs} |
| 18 | +whitelist_externals = stestr |
19 | 19 |
|
20 | 20 | [testenv:fast8] |
21 | 21 | # Use same environment directory as pep8 env to save space and install time |
@@ -63,36 +63,41 @@ commands = |
63 | 63 | pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config" |
64 | 64 | pip install -q -e "git+file://{toxinidir}/../python-openstacksdk#egg=openstacksdk" |
65 | 65 | pip freeze |
66 | | - ostestr {posargs} |
67 | | -whitelist_externals = ostestr |
| 66 | + stestr run {posargs} |
| 67 | +whitelist_externals = stestr |
68 | 68 |
|
69 | 69 | [testenv:functional] |
70 | 70 | setenv = OS_TEST_PATH=./openstackclient/tests/functional |
71 | 71 | passenv = OS_* |
72 | | -whitelist_externals = openstackclient/tests/functional/run_ostestr.sh |
| 72 | +whitelist_externals = openstackclient/tests/functional/run_stestr.sh |
73 | 73 | commands = |
74 | | - {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs} |
| 74 | + {toxinidir}/openstackclient/tests/functional/run_stestr.sh {posargs} |
75 | 75 |
|
76 | 76 | [testenv:functional-tips] |
77 | 77 | setenv = OS_TEST_PATH=./openstackclient/tests/functional |
78 | 78 | passenv = OS_* |
79 | | -whitelist_externals = openstackclient/tests/functional/run_ostestr.sh |
| 79 | +whitelist_externals = openstackclient/tests/functional/run_stestr.sh |
80 | 80 | commands = |
81 | 81 | pip install -q -U -e "git+file://{toxinidir}/../cliff#egg=cliff" |
82 | 82 | pip install -q -U -e "git+file://{toxinidir}/../keystoneauth#egg=keystoneauth" |
83 | 83 | pip install -q -U -e "git+file://{toxinidir}/../osc-lib#egg=osc_lib" |
84 | 84 | pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config" |
85 | 85 | pip install -q -U -e "git+file://{toxinidir}/../python-openstacksdk#egg=openstacksdk" |
86 | 86 | pip freeze |
87 | | - {toxinidir}/openstackclient/tests/functional/run_ostestr.sh {posargs} |
| 87 | + {toxinidir}/openstackclient/tests/functional/run_stestr.sh {posargs} |
88 | 88 |
|
89 | 89 | [testenv:venv] |
90 | 90 | commands = {posargs} |
91 | 91 |
|
92 | 92 | [testenv:cover] |
| 93 | +setenv = |
| 94 | + VIRTUAL_ENV={envdir} |
| 95 | + PYTHON=coverage run --source openstackclient --parallel-mode |
93 | 96 | commands = |
94 | | - python setup.py test --coverage --testr-args='{posargs}' |
95 | | - coverage report |
| 97 | + stestr -q run {posargs} |
| 98 | + coverage combine |
| 99 | + coverage html -d cover |
| 100 | + coverage xml -o cover/coverage.xml |
96 | 101 |
|
97 | 102 | [testenv:debug] |
98 | 103 | passenv = OS_* |
|
0 commit comments