[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} NOSE_WITH_OPENSTACK=1 NOSE_OPENSTACK_COLOR=1 NOSE_OPENSTACK_RED=15 NOSE_OPENSTACK_YELLOW=3 NOSE_OPENSTACK_SHOW_ELAPSED=1 NOSE_OPENSTACK_STDOUT=1 commands = nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli [testenv:testr-full] sitepackages = True setenv = VIRTUAL_ENV={envdir} commands = sh tools/pretty_tox.sh 'tempest.api tempest.scenario tempest.thirdparty tempest.cli {posargs}' [testenv:smoke] sitepackages = True setenv = VIRTUAL_ENV={envdir} NOSE_WITH_OPENSTACK=1 NOSE_OPENSTACK_COLOR=1 NOSE_OPENSTACK_RED=15 NOSE_OPENSTACK_YELLOW=3 NOSE_OPENSTACK_SHOW_ELAPSED=1 NOSE_OPENSTACK_STDOUT=1 commands = nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest [testenv:coverage] sitepackages = True setenv = VIRTUAL_ENV={envdir} NOSE_WITH_OPENSTACK=1 NOSE_OPENSTACK_COLOR=1 NOSE_OPENSTACK_RED=15 NOSE_OPENSTACK_YELLOW=3 NOSE_OPENSTACK_SHOW_ELAPSED=1 NOSE_OPENSTACK_STDOUT=1 commands = python -m tools/tempest_coverage -c start --combine nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli 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