blob: b0d66b49dd6d62ef57bd064f08a5db4702e0fa2e [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
12deps = -r{toxinidir}/tools/pip-requires
13 -r{toxinidir}/tools/test-requires
Monty Taylor8d4c90c2013-05-02 14:33:18 -040014
15[testenv:full]
16sitepackages = True
17setenv = VIRTUAL_ENV={envdir}
18 NOSE_WITH_OPENSTACK=1
19 NOSE_OPENSTACK_COLOR=1
20 NOSE_OPENSTACK_RED=15
21 NOSE_OPENSTACK_YELLOW=3
22 NOSE_OPENSTACK_SHOW_ELAPSED=1
23 NOSE_OPENSTACK_STDOUT=1
24commands =
25 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest
26 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-cli.xml -sv cli
27
28[testenv:smoke]
29sitepackages = True
30setenv = VIRTUAL_ENV={envdir}
31 NOSE_WITH_OPENSTACK=1
32 NOSE_OPENSTACK_COLOR=1
33 NOSE_OPENSTACK_RED=15
34 NOSE_OPENSTACK_YELLOW=3
35 NOSE_OPENSTACK_SHOW_ELAPSED=1
36 NOSE_OPENSTACK_STDOUT=1
37commands =
38 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke --xunit-file=nosetests-smoke.xml tempest
39
Jay Pipesa6aa5f22012-07-24 19:40:29 -040040
Matthew Treinishd15705b2012-10-16 14:04:48 -040041[testenv:coverage]
Monty Taylor8d4c90c2013-05-02 14:33:18 -040042sitepackages = True
43setenv = VIRTUAL_ENV={envdir}
44 NOSE_WITH_OPENSTACK=1
45 NOSE_OPENSTACK_COLOR=1
46 NOSE_OPENSTACK_RED=15
47 NOSE_OPENSTACK_YELLOW=3
48 NOSE_OPENSTACK_SHOW_ELAPSED=1
49 NOSE_OPENSTACK_STDOUT=1
50commands =
51 python -m tools/tempest_coverage -c start --combine
52 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest
53 nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-cli.xml -sv cli
54 python -m tools/tempest_coverage -c report --html
Matthew Treinishd15705b2012-10-16 14:04:48 -040055
Jay Pipesa6aa5f22012-07-24 19:40:29 -040056[testenv:pep8]
Monty Taylorb2ca5ca2013-04-28 18:00:21 -070057commands = flake8
58
59[flake8]
60ignore = E125,H302,H404
61show-source = True
62exclude = .git,.venv,.tox,dist,doc,openstack,*egg