blob: 99a92f236be951fd6f70cdc3e9dcf7dd07a8b48d [file] [log] [blame]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +03001# 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.
5
6[tox]
7skipsdist = True
Dennis Dmitriev9b02c8b2017-11-13 15:31:35 +02008#envlist = pep8, py{27,35}
9# requirement functools32 is not installed for py35
10envlist = pep8,py27
Dmitry011d2a02016-10-25 23:24:40 +030011
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030012[testenv]
Dennis Dmitriev9b02c8b2017-11-13 15:31:35 +020013install_command = pip install -U {opts} {packages}
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030014deps =
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030015 -r{toxinidir}/tcp_tests/requirements.txt
Dennis Dmitrievc9b677d2017-11-21 16:42:35 +020016 mock>=1.2
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030017usedevelop = False
18commands = py.test -s -vvv tcp_tests/tests/unit
19
20[testenv:venv]
21commands = {posargs}
22
23[testenv:pep8]
24deps = flake8
25usedevelop = False
26exclude = .venv,.git,.tox,.chache,.lib,dist,doc,*egg,build,local*
27commands =
28 flake8 {posargs:.}
29
30[flake8]
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030031exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
32show-pep8 = True
33show-source = True
34count = True