1 # Tox (http://tox.testrun.org/) is a tool for running tests
2 # in multiple virtualenvs. This configuration file will run the
3 # test suite on all supported python versions. To use it, "pip install tox"
4 # and then run "tox" from this directory.
12 serial
: mark a test that must run by itself
17 # for testing with other python versions
18 commands = py.test --tb native -ra -v -s -n auto -k 'not integration' -m 'not serial' {posargs}
31 # default tox env excludes integration and serial tests
33 # These need to be installed in a specific order
34 pip install urllib3==1.22
36 py.test
--tb native
-ra
-v
-s
-n auto
-k 'not integration'
-m 'not serial'
{posargs
}
39 envdir = {toxworkdir}/py3
41 flake8
--ignore E501
{posargs
} juju tests
46 envdir = {toxworkdir}/py35
48 flake8
--ignore E501
{posargs
} juju
53 envdir = {toxworkdir}/py3
54 commands = py.test --tb native -ra -v -s -n auto -k 'integration' -m 'not serial' {posargs}
57 # tests that can't be run in parallel
58 envdir = {toxworkdir}/py3
59 commands = py.test --tb native -ra -v -s {posargs:-m 'serial'}
62 envdir = {toxworkdir}/py3
63 commands = python {posargs}
66 exclude = juju/client/_*