blob: ae1b11e29a01f54fae5a3d6452317759b2f2a0a3 [file] [log] [blame]
Jay Pipesa6aa5f22012-07-24 19:40:29 -04001[tox]
2envlist = pep8
3
4[testenv]
5setenv = VIRTUAL_ENV={envdir}
6 NOSE_WITH_OPENSTACK=1
7 NOSE_OPENSTACK_COLOR=1
8 NOSE_OPENSTACK_RED=15
9 NOSE_OPENSTACK_YELLOW=3
10 NOSE_OPENSTACK_SHOW_ELAPSED=1
11 NOSE_OPENSTACK_STDOUT=1
Monty Taylor8d4c90c2013-05-02 14:33:18 -040012
Giampaolo Lauria7a3e0042013-06-07 14:59:19 -040013[testenv:all]
14sitepackages = True
15setenv = VIRTUAL_ENV={envdir}
16 NOSE_WITH_OPENSTACK=1
17 NOSE_OPENSTACK_COLOR=1
18 NOSE_OPENSTACK_RED=15
19 NOSE_OPENSTACK_YELLOW=3
20 NOSE_OPENSTACK_SHOW_ELAPSED=1
21 NOSE_OPENSTACK_STDOUT=1
22commands =
23 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-all.xml -sv tempest
24
Monty Taylor8d4c90c2013-05-02 14:33:18 -040025[testenv:full]
26sitepackages = True
27setenv = VIRTUAL_ENV={envdir}
28 NOSE_WITH_OPENSTACK=1
29 NOSE_OPENSTACK_COLOR=1
30 NOSE_OPENSTACK_RED=15
31 NOSE_OPENSTACK_YELLOW=3
32 NOSE_OPENSTACK_SHOW_ELAPSED=1
33 NOSE_OPENSTACK_STDOUT=1
34commands =
Sean Dague1937d092013-05-17 16:36:38 -040035 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
Monty Taylor8d4c90c2013-05-02 14:33:18 -040036
37[testenv:smoke]
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 =
47 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest
48
Jay Pipesa6aa5f22012-07-24 19:40:29 -040049
Matthew Treinishd15705b2012-10-16 14:04:48 -040050[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040051sitepackages = True
52setenv = VIRTUAL_ENV={envdir}
53 NOSE_WITH_OPENSTACK=1
54 NOSE_OPENSTACK_COLOR=1
55 NOSE_OPENSTACK_RED=15
56 NOSE_OPENSTACK_YELLOW=3
57 NOSE_OPENSTACK_SHOW_ELAPSED=1
58 NOSE_OPENSTACK_STDOUT=1
59commands =
60 python -m tools/tempest_coverage -c start --combine
Sean Dague1937d092013-05-17 16:36:38 -040061 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
Matthew Treinish04001292013-06-19 16:39:50 -040062 python -m tools/tempest_coverage -c report --html {posargs}
Matthew Treinishd15705b2012-10-16 14:04:48 -040063
Matthew Treinishcee11772013-07-02 17:50:41 -040064[testenv:stress]
65sitepackages = True
66setenv = VIRTUAL_ENV={envdir}
67commands =
Matthew Treinish7bd1cf22013-07-16 10:51:53 -040068 python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
Matthew Treinishcee11772013-07-02 17:50:41 -040069
Sean Dagueb56052b2013-05-21 17:57:41 -040070[testenv:venv]
71commands = {posargs}
Zhenguo Niud41413a2013-05-29 17:42:42 +080072deps = -r{toxinidir}/requirements.txt
73 -r{toxinidir}/test-requirements.txt
Sean Dagueb56052b2013-05-21 17:57:41 -040074
Jay Pipesa6aa5f22012-07-24 19:40:29 -040075[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070076commands = flake8
Zhenguo Niud41413a2013-05-29 17:42:42 +080077deps = -r{toxinidir}/requirements.txt
78 -r{toxinidir}/test-requirements.txt
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070079
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040080[hacking]
Giampaolo Lauriad50c27d2013-05-23 15:23:12 -040081local-check-factory = tempest.hacking.checks.factory
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040082
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070083[flake8]
84ignore = E125,H302,H404
85show-source = True
86exclude = .git,.venv,.tox,dist,doc,openstack,*egg