This commit removes all usage of nose from tox and run_tests.sh and migrates over to testr for running tests serially. Change-Id: I484e02f24d3b30d976860b69d26f3276775deddc
68 lines
1.9 KiB
INI
68 lines
1.9 KiB
INI
[tox]
|
|
envlist = pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
|
|
[testenv:all]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python setup.py testr --slowest
|
|
|
|
[testenv:full]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
# The regex below is used to select which tests to run and exclude the slow tag:
|
|
# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
|
|
commands =
|
|
sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
|
|
|
|
[testenv:testr-full]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
|
|
|
|
[testenv:smoke]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
sh tools/pretty_tox_serial.sh 'smoke {posargs}'
|
|
|
|
[testenv:coverage]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python -m tools/tempest_coverage -c start --combine
|
|
sh tools/pretty_tox_serial.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}'
|
|
python -m tools/tempest_coverage -c report --html {posargs}
|
|
|
|
[testenv:stress]
|
|
sitepackages = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[hacking]
|
|
local-check-factory = tempest.hacking.checks.factory
|
|
|
|
[flake8]
|
|
# E125 is a won't fix until https://github.com/jcrocholl/pep8/issues/126 is resolved. For further detail see https://review.openstack.org/#/c/36788/
|
|
ignore = E125,H302,H404
|
|
show-source = True
|
|
exclude = .git,.venv,.tox,dist,doc,openstack,*egg
|