2010-07-05 21:55:21 +08:00
|
|
|
[tox]
|
2015-06-23 22:31:24 +08:00
|
|
|
minversion=2.0
|
2010-07-05 21:55:21 +08:00
|
|
|
distshare={homedir}/.tox/distshare
|
2016-07-05 08:50:05 +08:00
|
|
|
# make sure to update enviroment list on appveyor.yml
|
2015-06-23 22:31:24 +08:00
|
|
|
envlist=
|
2016-01-06 04:14:57 +08:00
|
|
|
linting,py26,py27,py33,py34,py35,pypy,
|
2015-09-26 14:37:21 +08:00
|
|
|
{py27,py35}-{pexpect,xdist,trial},
|
2016-07-27 08:29:07 +08:00
|
|
|
py27-nobyte,doctesting,freeze
|
2010-07-05 21:55:21 +08:00
|
|
|
|
2010-07-02 21:26:03 +08:00
|
|
|
[testenv]
|
2016-06-21 22:16:57 +08:00
|
|
|
commands= pytest --lsof -rfsxX {posargs:testing}
|
2015-07-15 05:11:30 +08:00
|
|
|
passenv = USER USERNAME
|
2010-07-30 21:05:24 +08:00
|
|
|
deps=
|
2016-04-02 10:45:44 +08:00
|
|
|
hypothesis
|
2013-05-07 22:26:56 +08:00
|
|
|
nose
|
2014-03-27 02:37:49 +08:00
|
|
|
mock
|
2016-01-24 19:30:38 +08:00
|
|
|
requests
|
2010-10-10 19:48:49 +08:00
|
|
|
|
2015-07-11 06:57:48 +08:00
|
|
|
[testenv:py26]
|
2016-06-21 22:16:57 +08:00
|
|
|
commands= pytest --lsof -rfsxX {posargs:testing}
|
2016-05-19 03:15:29 +08:00
|
|
|
# pinning mock to last supported version for python 2.6
|
2015-07-11 06:57:48 +08:00
|
|
|
deps=
|
2016-04-02 23:28:36 +08:00
|
|
|
hypothesis<3.0
|
2015-07-11 06:57:48 +08:00
|
|
|
nose
|
2016-05-19 03:15:29 +08:00
|
|
|
mock<1.1
|
2015-07-11 06:57:48 +08:00
|
|
|
|
2015-04-28 17:54:53 +08:00
|
|
|
[testenv:py27-subprocess]
|
|
|
|
changedir=.
|
|
|
|
basepython=python2.7
|
2015-08-18 18:32:33 +08:00
|
|
|
deps=pytest-xdist>=1.13
|
2015-04-28 17:54:53 +08:00
|
|
|
mock
|
|
|
|
nose
|
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -n3 -rfsxX --runpytest=subprocess {posargs:testing}
|
2015-04-28 17:54:53 +08:00
|
|
|
|
2010-10-26 16:09:41 +08:00
|
|
|
[testenv:genscript]
|
2016-06-21 22:16:57 +08:00
|
|
|
commands= pytest --genscript=pytest1
|
2010-10-26 16:09:41 +08:00
|
|
|
|
2016-01-06 04:14:57 +08:00
|
|
|
[testenv:linting]
|
2015-07-16 06:52:28 +08:00
|
|
|
basepython = python2.7
|
2015-07-24 16:05:54 +08:00
|
|
|
deps = flake8
|
2016-01-06 06:01:41 +08:00
|
|
|
restructuredtext_lint
|
2015-07-24 16:05:54 +08:00
|
|
|
commands = flake8 pytest.py _pytest testing
|
2016-08-20 05:50:46 +08:00
|
|
|
rst-lint CHANGELOG.rst HOWTORELEASE.rst
|
2013-10-12 21:39:22 +08:00
|
|
|
|
2010-07-07 18:41:15 +08:00
|
|
|
[testenv:py27-xdist]
|
2015-08-18 18:32:33 +08:00
|
|
|
deps=pytest-xdist>=1.13
|
2013-05-07 22:26:56 +08:00
|
|
|
mock
|
|
|
|
nose
|
2016-04-02 22:52:28 +08:00
|
|
|
hypothesis
|
2010-07-07 18:41:15 +08:00
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -n1 -rfsxX {posargs:testing}
|
2012-10-22 17:14:18 +08:00
|
|
|
|
2015-09-26 14:37:21 +08:00
|
|
|
[testenv:py35-xdist]
|
2013-11-20 23:03:55 +08:00
|
|
|
deps={[testenv:py27-xdist]deps}
|
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -n3 -rfsxX {posargs:testing}
|
2013-11-20 23:03:55 +08:00
|
|
|
|
2013-11-21 03:00:59 +08:00
|
|
|
[testenv:py27-pexpect]
|
|
|
|
changedir=testing
|
2015-06-23 22:31:24 +08:00
|
|
|
platform=linux|darwin
|
2013-11-21 03:00:59 +08:00
|
|
|
deps=pexpect
|
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
2013-11-21 03:00:59 +08:00
|
|
|
|
2015-09-26 14:37:21 +08:00
|
|
|
[testenv:py35-pexpect]
|
2013-11-21 03:00:59 +08:00
|
|
|
changedir=testing
|
2015-06-23 22:31:24 +08:00
|
|
|
platform=linux|darwin
|
2013-11-21 03:00:59 +08:00
|
|
|
deps={[testenv:py27-pexpect]deps}
|
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
2013-11-21 03:00:59 +08:00
|
|
|
|
2012-10-22 17:14:18 +08:00
|
|
|
[testenv:py27-nobyte]
|
2015-08-18 18:32:33 +08:00
|
|
|
deps=pytest-xdist>=1.13
|
2016-04-02 22:52:28 +08:00
|
|
|
hypothesis
|
2013-08-15 17:52:55 +08:00
|
|
|
distribute=true
|
2012-10-22 17:14:18 +08:00
|
|
|
setenv=
|
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
commands=
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest -n3 -rfsxX {posargs:testing}
|
2010-07-07 18:41:15 +08:00
|
|
|
|
2014-03-28 21:44:51 +08:00
|
|
|
[testenv:py27-trial]
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=twisted
|
2010-11-24 18:48:55 +08:00
|
|
|
commands=
|
2016-08-18 19:37:55 +08:00
|
|
|
pytest -ra {posargs:testing/test_unittest.py}
|
2014-03-28 21:44:51 +08:00
|
|
|
|
2015-09-26 14:37:21 +08:00
|
|
|
[testenv:py35-trial]
|
2014-03-28 21:44:51 +08:00
|
|
|
deps={[testenv:py27-trial]deps}
|
|
|
|
commands=
|
2016-08-18 19:37:55 +08:00
|
|
|
pytest -ra {posargs:testing/test_unittest.py}
|
2014-03-28 21:44:51 +08:00
|
|
|
|
2010-11-18 21:56:16 +08:00
|
|
|
[testenv:doctest]
|
2016-06-21 22:16:57 +08:00
|
|
|
commands=pytest --doctest-modules _pytest
|
2010-11-18 21:56:16 +08:00
|
|
|
deps=
|
|
|
|
|
2010-07-04 19:56:03 +08:00
|
|
|
[testenv:doc]
|
|
|
|
basepython=python
|
2012-10-07 19:06:17 +08:00
|
|
|
changedir=doc/en
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=sphinx
|
|
|
|
PyYAML
|
2010-07-30 21:05:24 +08:00
|
|
|
|
2010-07-29 17:22:16 +08:00
|
|
|
commands=
|
2012-10-07 19:06:17 +08:00
|
|
|
make clean
|
2010-10-12 16:59:04 +08:00
|
|
|
make html
|
2010-10-10 19:48:49 +08:00
|
|
|
|
2014-04-02 18:48:35 +08:00
|
|
|
[testenv:doctesting]
|
2016-06-02 07:29:55 +08:00
|
|
|
basepython = python
|
2014-04-02 18:48:35 +08:00
|
|
|
changedir=doc/en
|
|
|
|
deps=PyYAML
|
2016-06-21 22:16:57 +08:00
|
|
|
commands= pytest -rfsxX {posargs}
|
2014-04-02 18:48:35 +08:00
|
|
|
|
2012-10-07 19:06:17 +08:00
|
|
|
[testenv:regen]
|
|
|
|
changedir=doc/en
|
2016-05-31 16:55:25 +08:00
|
|
|
basepython = python3.5
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=sphinx
|
|
|
|
PyYAML
|
2015-09-22 20:48:04 +08:00
|
|
|
regendoc>=0.6.1
|
2015-09-22 20:02:11 +08:00
|
|
|
whitelist_externals=
|
|
|
|
rm
|
|
|
|
make
|
2012-10-07 19:06:17 +08:00
|
|
|
commands=
|
2012-10-18 21:06:55 +08:00
|
|
|
rm -rf /tmp/doc-exec*
|
2012-10-07 19:06:17 +08:00
|
|
|
make regen
|
|
|
|
|
2010-07-02 01:43:46 +08:00
|
|
|
[testenv:jython]
|
2010-07-02 01:46:22 +08:00
|
|
|
changedir=testing
|
2010-07-03 20:29:43 +08:00
|
|
|
commands=
|
2015-06-23 22:31:24 +08:00
|
|
|
{envpython} {envbindir}/py.test-jython -rfsxX {posargs}
|
2010-10-28 01:35:27 +08:00
|
|
|
|
2016-07-27 08:29:07 +08:00
|
|
|
[testenv:freeze]
|
|
|
|
changedir=testing/freeze
|
|
|
|
deps=pyinstaller
|
2014-07-31 06:16:51 +08:00
|
|
|
commands=
|
2016-07-27 08:29:07 +08:00
|
|
|
{envpython} create_executable.py
|
2014-07-31 08:50:00 +08:00
|
|
|
{envpython} tox_run.py
|
2015-07-19 21:49:43 +08:00
|
|
|
|
2014-07-31 06:16:51 +08:00
|
|
|
|
2015-06-16 06:40:49 +08:00
|
|
|
[testenv:coveralls]
|
2016-01-31 06:48:15 +08:00
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH COVERALLS_REPO_TOKEN
|
2015-06-16 07:37:55 +08:00
|
|
|
usedevelop=True
|
2015-06-16 06:40:49 +08:00
|
|
|
basepython=python3.4
|
2015-06-24 05:25:19 +08:00
|
|
|
changedir=.
|
2015-06-16 06:40:49 +08:00
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
coveralls
|
|
|
|
commands=
|
2016-01-31 06:48:15 +08:00
|
|
|
coverage run --source=_pytest -m pytest testing
|
2015-06-16 06:40:49 +08:00
|
|
|
coverage report -m
|
|
|
|
coveralls
|
|
|
|
|
2010-10-28 01:35:27 +08:00
|
|
|
[pytest]
|
|
|
|
minversion=2.0
|
2010-11-01 00:41:58 +08:00
|
|
|
plugins=pytester
|
2012-06-12 19:41:29 +08:00
|
|
|
#--pyargs --doctest-modules --ignore=.tox
|
2015-05-07 18:19:35 +08:00
|
|
|
addopts= -rxsX -p pytester --ignore=testing/cx_freeze
|
2010-11-14 02:46:28 +08:00
|
|
|
rsyncdirs=tox.ini pytest.py _pytest testing
|
2012-11-02 23:04:57 +08:00
|
|
|
python_files=test_*.py *_test.py testing/*/*.py
|
2010-11-25 05:01:04 +08:00
|
|
|
python_classes=Test Acceptance
|
|
|
|
python_functions=test
|
2015-06-23 22:31:24 +08:00
|
|
|
norecursedirs = .tox ja .hg cx_freeze_source
|
2015-07-24 16:05:54 +08:00
|
|
|
|
|
|
|
|
|
|
|
[flake8]
|
2016-01-15 07:01:07 +08:00
|
|
|
ignore =E401,E225,E261,E128,E124,E301,E302,E121,E303,W391,E501,E231,E126,E701,E265,E241,E251,E226,E101,W191,E131,E203,E122,E123,E271,E712,E222,E127,E125,E221,W292,E111,E113,E293,E262,W293,E129,E702,E201,E272,E202,E704,E731,E402
|