blob: a101a9e305a3915d2d21b0f7a26b5617dc5510d3 [file] [log] [blame]
Jay Pipesa6aa5f22012-07-24 19:40:29 -04001[tox]
2envlist = pep8
3
4[testenv]
5setenv = VIRTUAL_ENV={envdir}
Matthew Treinish87af1bb2013-06-17 15:29:10 -04006 LANG=en_US.UTF-8
7 LANGUAGE=en_US:en
8 LC_ALL=C
Monty Taylor8d4c90c2013-05-02 14:33:18 -04009
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040010[testenv:all]
11sitepackages = True
12setenv = VIRTUAL_ENV={envdir}
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040013commands =
Matthew Treinisheda037c2013-08-09 16:57:28 -040014 python setup.py testr --slowest --testr-args='{posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040015
Monty Taylor8d4c90c2013-05-02 14:33:18 -040016[testenv:full]
17sitepackages = True
18setenv = VIRTUAL_ENV={envdir}
Matthew Treinish59eb0b22013-08-07 15:48:21 -040019# The regex below is used to select which tests to run and exclude the slow tag:
20# See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610
Matthew Treinish83d2ec42013-07-30 16:37:32 -040021commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040022 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
Matthew Treinish83d2ec42013-07-30 16:37:32 -040023
Matthew Treinish87af1bb2013-06-17 15:29:10 -040024[testenv:testr-full]
25sitepackages = True
26setenv = VIRTUAL_ENV={envdir}
27commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040028 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests)) {posargs}'
Matthew Treinish87af1bb2013-06-17 15:29:10 -040029
David Kranzc5d52e92013-08-23 11:47:36 -040030[testenv:heat-slow]
31sitepackages = True
32setenv = VIRTUAL_ENV={envdir}
33# The regex below is used to select heat api/scenario tests tagged as slow.
34commands =
35 sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}'
36
Matthew Treinishf0e47472013-08-15 16:54:45 -040037[testenv:py26-full]
38sitepackages = True
39setenv = VIRTUAL_ENV={envdir}
40 NOSE_WITH_OPENSTACK=1
41 NOSE_OPENSTACK_COLOR=1
42 NOSE_OPENSTACK_RED=15
43 NOSE_OPENSTACK_YELLOW=3
44 NOSE_OPENSTACK_SHOW_ELAPSED=1
45 NOSE_OPENSTACK_STDOUT=1
46commands =
Matthew Treinish32d35702013-08-13 11:59:06 -040047 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 -040048
49[testenv:py26-smoke]
50setenv = VIRTUAL_ENV={envdir}
51NOSE_WITH_OPENSTACK=1
52 NOSE_OPENSTACK_COLOR=1
53 NOSE_OPENSTACK_RED=15
54 NOSE_OPENSTACK_YELLOW=3
55 NOSE_OPENSTACK_SHOW_ELAPSED=1
56 NOSE_OPENSTACK_STDOUT=1
57commands =
58 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest {posargs}
59
Monty Taylor8d4c90c2013-05-02 14:33:18 -040060[testenv:smoke]
61sitepackages = True
62setenv = VIRTUAL_ENV={envdir}
Matthew Treinish26058bc2013-08-13 17:50:59 -040063# This is still serial because neutron doesn't work with parallel. See:
64# https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke
65# job would fail if we moved it to parallel.
Monty Taylor8d4c90c2013-05-02 14:33:18 -040066commands =
Matthew Treinish59eb0b22013-08-07 15:48:21 -040067 sh tools/pretty_tox_serial.sh 'smoke {posargs}'
Monty Taylor8d4c90c2013-05-02 14:33:18 -040068
Matthew Treinishd15705b2012-10-16 14:04:48 -040069[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040070sitepackages = True
71setenv = VIRTUAL_ENV={envdir}
Monty Taylor8d4c90c2013-05-02 14:33:18 -040072commands =
73 python -m tools/tempest_coverage -c start --combine
Matthew Treinish32d35702013-08-13 11:59:06 -040074 sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli|tests))'
Matthew Treinish04001292013-06-19 16:39:50 -040075 python -m tools/tempest_coverage -c report --html {posargs}
Matthew Treinishd15705b2012-10-16 14:04:48 -040076
Matthew Treinishcee11772013-07-02 17:50:41 -040077[testenv:stress]
78sitepackages = True
79setenv = VIRTUAL_ENV={envdir}
80commands =
Matthew Treinish7bd1cf22013-07-16 10:51:53 -040081 python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
Matthew Treinishcee11772013-07-02 17:50:41 -040082
Sean Dagueb56052b2013-05-21 17:57:41 -040083[testenv:venv]
84commands = {posargs}
Zhenguo Niud41413a2013-05-29 17:42:42 +080085deps = -r{toxinidir}/requirements.txt
86 -r{toxinidir}/test-requirements.txt
Sean Dagueb56052b2013-05-21 17:57:41 -040087
Jay Pipesa6aa5f22012-07-24 19:40:29 -040088[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070089commands = flake8
Zhenguo Niud41413a2013-05-29 17:42:42 +080090deps = -r{toxinidir}/requirements.txt
91 -r{toxinidir}/test-requirements.txt
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070092
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040093[hacking]
Giampaolo Lauriad50c27d2013-05-23 15:23:12 -040094local-check-factory = tempest.hacking.checks.factory
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040095
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070096[flake8]
Joe Gordondca03dd2013-07-18 14:10:19 -070097# 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 -070098ignore = E125,H302,H404
99show-source = True
100exclude = .git,.venv,.tox,dist,doc,openstack,*egg