Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 1 | [tox] |
| 2 | envlist = pep8 |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 3 | minversion = 1.6 |
| 4 | skipsdist = True |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 5 | |
| 6 | [testenv] |
| 7 | setenv = VIRTUAL_ENV={envdir} |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 8 | LANG=en_US.UTF-8 |
| 9 | LANGUAGE=en_US:en |
| 10 | LC_ALL=C |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 11 | usedevelop = True |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 12 | |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame^] | 13 | [testenv:py26] |
| 14 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 15 | |
| 16 | [testenv:py33] |
| 17 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 18 | |
| 19 | [testenv:py27] |
| 20 | commands = python setup.py test --slowest --testr-arg='tempest\.tests {posargs}' |
| 21 | |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 22 | [testenv:all] |
| 23 | sitepackages = True |
| 24 | setenv = VIRTUAL_ENV={envdir} |
Giampaolo Lauria | 7a3e004 | 2013-06-07 14:59:19 -0400 | [diff] [blame] | 25 | commands = |
Matthew Treinish | eda037c | 2013-08-09 16:57:28 -0400 | [diff] [blame] | 26 | python setup.py testr --slowest --testr-args='{posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 27 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 28 | [testenv:full] |
| 29 | sitepackages = True |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 30 | # The regex below is used to select which tests to run and exclude the slow tag: |
| 31 | # See the testrepostiory bug: https://bugs.launchpad.net/testrepository/+bug/1208610 |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 32 | commands = |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame^] | 33 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 83d2ec4 | 2013-07-30 16:37:32 -0400 | [diff] [blame] | 34 | |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 35 | [testenv:testr-full] |
| 36 | sitepackages = True |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 37 | commands = |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame^] | 38 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli)) {posargs}' |
Matthew Treinish | 87af1bb | 2013-06-17 15:29:10 -0400 | [diff] [blame] | 39 | |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 40 | [testenv:heat-slow] |
| 41 | sitepackages = True |
Matthew Treinish | 7228e11 | 2013-10-03 14:58:54 +0000 | [diff] [blame] | 42 | setenv = OS_TEST_TIMEOUT=1200 |
David Kranz | c5d52e9 | 2013-08-23 11:47:36 -0400 | [diff] [blame] | 43 | # The regex below is used to select heat api/scenario tests tagged as slow. |
| 44 | commands = |
| 45 | sh tools/pretty_tox_serial.sh '(?=.*\[.*\bslow\b.*\])(^tempest\.(api|scenario)\.orchestration) {posargs}' |
| 46 | |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 47 | [testenv:large-ops] |
| 48 | sitepackages = True |
Joe Gordon | 4002815 | 2013-08-26 17:53:29 -0400 | [diff] [blame] | 49 | commands = |
| 50 | python setup.py testr --slowest --testr-args='tempest.scenario.test_large_ops {posargs}' |
| 51 | |
| 52 | |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 53 | [testenv:py26-full] |
| 54 | sitepackages = True |
| 55 | setenv = VIRTUAL_ENV={envdir} |
| 56 | NOSE_WITH_OPENSTACK=1 |
| 57 | NOSE_OPENSTACK_COLOR=1 |
| 58 | NOSE_OPENSTACK_RED=15 |
| 59 | NOSE_OPENSTACK_YELLOW=3 |
| 60 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 61 | NOSE_OPENSTACK_STDOUT=1 |
Attila Fazekas | ea88d9f | 2013-10-03 12:51:44 +0200 | [diff] [blame] | 62 | TEMPEST_PY26_NOSE_COMPAT=1 |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 63 | commands = |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame^] | 64 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --xunit-file=nosetests-full.xml tempest/api tempest/scenario tempest/thirdparty tempest/cli {posargs} |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 65 | |
| 66 | [testenv:py26-smoke] |
| 67 | setenv = VIRTUAL_ENV={envdir} |
| 68 | NOSE_WITH_OPENSTACK=1 |
| 69 | NOSE_OPENSTACK_COLOR=1 |
| 70 | NOSE_OPENSTACK_RED=15 |
| 71 | NOSE_OPENSTACK_YELLOW=3 |
| 72 | NOSE_OPENSTACK_SHOW_ELAPSED=1 |
| 73 | NOSE_OPENSTACK_STDOUT=1 |
Attila Fazekas | ea88d9f | 2013-10-03 12:51:44 +0200 | [diff] [blame] | 74 | TEMPEST_PY26_NOSE_COMPAT=1 |
Matthew Treinish | f0e4747 | 2013-08-15 16:54:45 -0400 | [diff] [blame] | 75 | commands = |
| 76 | nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest {posargs} |
| 77 | |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 78 | [testenv:smoke] |
| 79 | sitepackages = True |
Matthew Treinish | 26058bc | 2013-08-13 17:50:59 -0400 | [diff] [blame] | 80 | # This is still serial because neutron doesn't work with parallel. See: |
| 81 | # https://bugs.launchpad.net/tempest/+bug/1216076 so the neutron smoke |
| 82 | # job would fail if we moved it to parallel. |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 83 | commands = |
Matthew Treinish | 59eb0b2 | 2013-08-07 15:48:21 -0400 | [diff] [blame] | 84 | sh tools/pretty_tox_serial.sh 'smoke {posargs}' |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 85 | |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 86 | [testenv:coverage] |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 87 | sitepackages = True |
Monty Taylor | 8d4c90c | 2013-05-02 14:33:18 -0400 | [diff] [blame] | 88 | commands = |
| 89 | python -m tools/tempest_coverage -c start --combine |
Matthew Treinish | 12fdf4b | 2013-10-03 15:20:09 +0000 | [diff] [blame^] | 90 | sh tools/pretty_tox.sh '(?!.*\[.*\bslow\b.*\])(^tempest\.(api|scenario|thirdparty|cli))' |
Matthew Treinish | 0400129 | 2013-06-19 16:39:50 -0400 | [diff] [blame] | 91 | python -m tools/tempest_coverage -c report --html {posargs} |
Matthew Treinish | d15705b | 2012-10-16 14:04:48 -0400 | [diff] [blame] | 92 | |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 93 | [testenv:stress] |
| 94 | sitepackages = True |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 95 | commands = |
Marc Koderer | 8f940ab | 2013-09-25 17:31:50 +0200 | [diff] [blame] | 96 | python -m tempest/stress/run_stress -a -d 3600 -S |
Matthew Treinish | cee1177 | 2013-07-02 17:50:41 -0400 | [diff] [blame] | 97 | |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 98 | [testenv:venv] |
| 99 | commands = {posargs} |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 100 | deps = -r{toxinidir}/requirements.txt |
| 101 | -r{toxinidir}/test-requirements.txt |
Sean Dague | b56052b | 2013-05-21 17:57:41 -0400 | [diff] [blame] | 102 | |
Jay Pipes | a6aa5f2 | 2012-07-24 19:40:29 -0400 | [diff] [blame] | 103 | [testenv:pep8] |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 104 | commands = flake8 |
Zhenguo Niu | d41413a | 2013-05-29 17:42:42 +0800 | [diff] [blame] | 105 | deps = -r{toxinidir}/requirements.txt |
| 106 | -r{toxinidir}/test-requirements.txt |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 107 | |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 108 | [hacking] |
Giampaolo Lauria | d50c27d | 2013-05-23 15:23:12 -0400 | [diff] [blame] | 109 | local-check-factory = tempest.hacking.checks.factory |
Giampaolo Lauria | 1b837ce | 2013-05-01 11:22:07 -0400 | [diff] [blame] | 110 | |
Monty Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 111 | [flake8] |
Joe Gordon | dca03dd | 2013-07-18 14:10:19 -0700 | [diff] [blame] | 112 | # 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 Taylor | b2ca5ca | 2013-04-28 18:00:21 -0700 | [diff] [blame] | 113 | ignore = E125,H302,H404 |
| 114 | show-source = True |
| 115 | exclude = .git,.venv,.tox,dist,doc,openstack,*egg |