blob: 3a36e8892db5aaad5fe9a8c4f925c134e91b9515 [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 Dmitriev6f59add2016-10-18 13:45:27 +030016usedevelop = False
17commands = py.test -s -vvv tcp_tests/tests/unit
18
19[testenv:venv]
20commands = {posargs}
21
22[testenv:pep8]
Dmitry Tyzhnenko240b67c2019-05-21 16:55:55 +030023deps =
24 flake8
Dennis Dmitriev6f59add2016-10-18 13:45:27 +030025usedevelop = 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