blob: 1a14f1de38098853a4d89c254dcf68ed844296b6 [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
13[testenv:full]
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 =
Sean Dague20779832013-05-12 18:33:35 -040023 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/tests tempest/cli
Monty Taylor8d4c90c2013-05-02 14:33:18 -040024
25[testenv:smoke]
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 =
35 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest
36
Jay Pipesa6aa5f22012-07-24 19:40:29 -040037
Matthew Treinishd15705b2012-10-16 14:04:48 -040038[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040039sitepackages = True
40setenv = VIRTUAL_ENV={envdir}
41 NOSE_WITH_OPENSTACK=1
42 NOSE_OPENSTACK_COLOR=1
43 NOSE_OPENSTACK_RED=15
44 NOSE_OPENSTACK_YELLOW=3
45 NOSE_OPENSTACK_SHOW_ELAPSED=1
46 NOSE_OPENSTACK_STDOUT=1
47commands =
48 python -m tools/tempest_coverage -c start --combine
Sean Dague20779832013-05-12 18:33:35 -040049 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/tests tempest/cli
Monty Taylor8d4c90c2013-05-02 14:33:18 -040050 python -m tools/tempest_coverage -c report --html
Matthew Treinishd15705b2012-10-16 14:04:48 -040051
Jay Pipesa6aa5f22012-07-24 19:40:29 -040052[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070053commands = flake8
Sean Dague9cf95392013-05-10 18:36:53 -040054deps = -r{toxinidir}/tools/pip-requires
55 -r{toxinidir}/tools/test-requires
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070056
Giampaolo Lauria1b837ce2013-05-01 11:22:07 -040057[hacking]
58local-check = tools.hacking.tempest.skip_bugs
59
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070060[flake8]
61ignore = E125,H302,H404
62show-source = True
63exclude = .git,.venv,.tox,dist,doc,openstack,*egg