Merge "Switch to stestr"
Zuul authored 5 years ago
Gerrit Code Review committed 5 years ago
|
0 |
[DEFAULT]
|
|
1 |
test_path=${OS_TEST_PATH:-./cinder_tempest_plugin}
|
|
2 |
top_dir=./
|
| 0 | |
[DEFAULT]
|
| 1 | |
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
| 2 | |
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
| 3 | |
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
| 4 | |
${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
|
| 5 | |
test_id_option=--load-list $IDFILE
|
| 6 | |
test_list_option=--list
|
| 6 | 6 |
coverage!=4.4,>=4.0 # Apache-2.0
|
| 7 | 7 |
python-subunit>=1.0.0 # Apache-2.0/BSD
|
| 8 | 8 |
oslotest>=3.2.0 # Apache-2.0
|
| 9 | |
testrepository>=0.0.18 # Apache-2.0/BSD
|
|
9 |
stestr>=1.0.0 # Apache-2.0
|
| 10 | 10 |
testtools>=2.2.0 # MIT
|
| 11 | 11 |
setenv =
|
| 12 | 12 |
VIRTUAL_ENV={envdir}
|
| 13 | 13 |
PYTHONWARNINGS=default::DeprecationWarning
|
|
14 |
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
|
|
15 |
OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true}
|
|
16 |
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
| 14 | 17 |
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
| 15 | 18 |
-r{toxinidir}/test-requirements.txt
|
| 16 | |
commands = python setup.py test --slowest --testr-args='{posargs}'
|
|
19 |
commands = stestr run --slowest {posargs}
|
| 17 | 20 |
|
| 18 | 21 |
[testenv:pep8]
|
| 19 | 22 |
commands = flake8 {posargs}
|