blob: cf41586ad2a34f53ba6998d6f8a0c6f9bf5090ce [file] [log] [blame]
Jay Pipesa6aa5f22012-07-24 19:40:29 -04001[tox]
2envlist = pep8
Matthew Treinish7228e112013-10-03 14:58:54 +00003minversion = 1.6
4skipsdist = True
Jay Pipesa6aa5f22012-07-24 19:40:29 -04005
6[testenv]
7setenv = VIRTUAL_ENV={envdir}
Matthew Treinish87af1bb2013-06-17 15:29:10 -04008 LANG=en_US.UTF-8
9 LANGUAGE=en_US:en
10 LC_ALL=C
Matthew Treinish7228e112013-10-03 14:58:54 +000011usedevelop = True
Monty Taylor8d4c90c2013-05-02 14:33:18 -040012
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040013[testenv:all]
14sitepackages = True
15setenv = VIRTUAL_ENV={envdir}
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040016commands =
Matthew Treinisheda037c2013-08-09 16:57:28 -040017 python setup.py testr --slowest --testr-args='{posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040018
Monty Taylor8d4c90c2013-05-02 14:33:18 -040019[testenv:full]
20sitepackages = True
Matthew Treinish59eb0b22013-08-07 15:48:21 -040021# The regex below is used to select which tests to run and exclude the slow tag:
22# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
Matthew Treinish83d2ec42013-07-30 16:37:32 -040023commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040024 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
Matthew Treinish83d2ec42013-07-30 16:37:32 -040025
Matthew Treinish87af1bb2013-06-17 15:29:10 -040026[testenv:testr-full]
27sitepackages = True
Matthew Treinish87af1bb2013-06-17 15:29:10 -040028commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040029 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040030
David Kranzc5d52e92013-08-23 11:47:36 -040031[testenv:heat-slow]
32sitepackages = True
Matthew Treinish7228e112013-10-03 14:58:54 +000033setenv = OS_TEST_TIMEOUT=1200
David Kranzc5d52e92013-08-23 11:47:36 -040034# The regex below is used to select heat api/scenario tests tagged as slow.
35commands =
36 sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}'
37
Joe Gordon40028152013-08-26 17:53:29 -040038[testenv:large-ops]
39sitepackages = True
Joe Gordon40028152013-08-26 17:53:29 -040040commands =
41 python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}'
42
43
Matthew Treinishf0e47472013-08-15 16:54:45 -040044[testenv:py26-full]
45sitepackages = True
46setenv = VIRTUAL_ENV={envdir}
47 NOSE_WITH_OPENSTACK=1
48 NOSE_OPENSTACK_COLOR=1
49 NOSE_OPENSTACK_RED=15
50 NOSE_OPENSTACK_YELLOW=3
51 NOSE_OPENSTACK_SHOW_ELAPSED=1
52 NOSE_OPENSTACK_STDOUT=1
Attila Fazekasea88d9f2013-10-03 12:51:44 +020053 TEMPEST_PY26_NOSE_COMPAT=1
Matthew Treinishf0e47472013-08-15 16:54:45 -040054commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040055 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --xunit-file=nosetests-full.xml tempest/api tempest/scenario tempest/thirdparty tempest/cli tempest/tests {posargs}
Matthew Treinishf0e47472013-08-15 16:54:45 -040056
57[testenv:py26-smoke]
58setenv = VIRTUAL_ENV={envdir}
59NOSE_WITH_OPENSTACK=1
60 NOSE_OPENSTACK_COLOR=1
61 NOSE_OPENSTACK_RED=15
62 NOSE_OPENSTACK_YELLOW=3
63 NOSE_OPENSTACK_SHOW_ELAPSED=1
64 NOSE_OPENSTACK_STDOUT=1
Attila Fazekasea88d9f2013-10-03 12:51:44 +020065 TEMPEST_PY26_NOSE_COMPAT=1
Matthew Treinishf0e47472013-08-15 16:54:45 -040066commands =
67 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest {posargs}
68
Monty Taylor8d4c90c2013-05-02 14:33:18 -040069[testenv:smoke]
70sitepackages = True
Matthew Treinish26058bc2013-08-13 17:50:59 -040071# This is still serial because neutron doesn't work with parallel. See:
72# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
73# job would fail if we moved it to parallel.
Monty Taylor8d4c90c2013-05-02 14:33:18 -040074commands =
Matthew Treinish59eb0b22013-08-07 15:48:21 -040075 sh tools/pretty_tox_serial.sh 'smoke {posargs}'
Monty Taylor8d4c90c2013-05-02 14:33:18 -040076
Matthew Treinishd15705b2012-10-16 14:04:48 -040077[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040078sitepackages = True
Monty Taylor8d4c90c2013-05-02 14:33:18 -040079commands =
80 python -m tools/tempest_coverage -c start --combine
Matthew Treinish32d35702013-08-13 11:59:06 -040081 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests))'
Matthew Treinish04001292013-06-19 16:39:50 -040082 python -m tools/tempest_coverage -c report --html {posargs}
Matthew Treinishd15705b2012-10-16 14:04:48 -040083
Matthew Treinishcee11772013-07-02 17:50:41 -040084[testenv:stress]
85sitepackages = True
Matthew Treinishcee11772013-07-02 17:50:41 -040086commands =
Marc Koderer8f940ab2013-09-25 17:31:50 +020087 python -m tempest/stress/run_stress -a -d 3600 -S
Matthew Treinishcee11772013-07-02 17:50:41 -040088
Sean Dagueb56052b2013-05-21 17:57:41 -040089[testenv:venv]
90commands = {posargs}
Zhenguo Niud41413a2013-05-29 17:42:42 +080091deps = -r{toxinidir}/requirements.txt
92 -r{toxinidir}/test-requirements.txt
Sean Dagueb56052b2013-05-21 17:57:41 -040093
Jay Pipesa6aa5f22012-07-24 19:40:29 -040094[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070095commands = flake8
Zhenguo Niud41413a2013-05-29 17:42:42 +080096deps = -r{toxinidir}/requirements.txt
97 -r{toxinidir}/test-requirements.txt
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070098
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040099[hacking]
Giampaolo Lauriad50c27d2013-05-23 15:23:12 -0400100local-check-factory = tempest.hacking.checks.factory
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -0400101
Monty Taylorb2ca5ca2013-04-28 18:00:21 -0700102[flake8]
Joe Gordondca03dd2013-07-18 14:10:19 -0700103# 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/
Monty Taylorb2ca5ca2013-04-28 18:00:21 -0700104ignore = E125,H302,H404
105show-source = True
106exclude = .git,.venv,.tox,dist,doc,openstack,*egg