2010-07-05 21:55:21 +08:00
|
|
|
[tox]
|
|
|
|
distshare={homedir}/.tox/distshare
|
2015-04-28 17:54:53 +08:00
|
|
|
envlist=flakes,py26,py27,py34,pypy,py27-pexpect,py33-pexpect,py27-nobyte,py33,py27-xdist,py33-xdist,{py27,py33}-trial,py27-subprocess,doctesting,py27-cxfreeze
|
2010-07-05 21:55:21 +08:00
|
|
|
|
2010-07-02 21:26:03 +08:00
|
|
|
[testenv]
|
2010-07-29 17:22:16 +08:00
|
|
|
changedir=testing
|
2011-11-06 23:40:17 +08:00
|
|
|
commands= py.test --lsof -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
|
2010-07-30 21:05:24 +08:00
|
|
|
deps=
|
2013-05-07 22:26:56 +08:00
|
|
|
nose
|
2014-03-27 02:37:49 +08:00
|
|
|
mock
|
2010-10-10 19:48:49 +08:00
|
|
|
|
2015-04-28 17:54:53 +08:00
|
|
|
[testenv:py27-subprocess]
|
|
|
|
changedir=.
|
|
|
|
basepython=python2.7
|
|
|
|
deps=pytest-xdist
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
commands=
|
|
|
|
py.test -n3 -rfsxX --runpytest=subprocess {posargs:testing}
|
|
|
|
|
2010-10-26 16:09:41 +08:00
|
|
|
[testenv:genscript]
|
|
|
|
changedir=.
|
|
|
|
commands= py.test --genscript=pytest1
|
|
|
|
|
2013-10-12 21:39:22 +08:00
|
|
|
[testenv:flakes]
|
|
|
|
changedir=
|
|
|
|
deps = pytest-flakes>=0.2
|
|
|
|
commands = py.test --flakes -m flakes _pytest testing
|
|
|
|
|
2010-07-07 18:41:15 +08:00
|
|
|
[testenv:py27-xdist]
|
2010-11-18 22:31:58 +08:00
|
|
|
changedir=.
|
2010-07-07 18:41:15 +08:00
|
|
|
basepython=python2.7
|
2010-10-21 22:10:46 +08:00
|
|
|
deps=pytest-xdist
|
2013-05-07 22:26:56 +08:00
|
|
|
mock
|
|
|
|
nose
|
2010-07-07 18:41:15 +08:00
|
|
|
commands=
|
2014-01-27 19:42:06 +08:00
|
|
|
py.test -n1 -rfsxX \
|
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
2012-10-22 17:14:18 +08:00
|
|
|
|
2013-11-20 23:03:55 +08:00
|
|
|
[testenv:py33-xdist]
|
|
|
|
changedir=.
|
|
|
|
basepython=python3.3
|
|
|
|
deps={[testenv:py27-xdist]deps}
|
|
|
|
commands=
|
|
|
|
py.test -n3 -rfsxX \
|
2015-04-27 21:06:47 +08:00
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
2013-11-20 23:03:55 +08:00
|
|
|
|
2013-11-21 03:00:59 +08:00
|
|
|
[testenv:py27-pexpect]
|
|
|
|
changedir=testing
|
|
|
|
basepython=python2.7
|
|
|
|
deps=pexpect
|
|
|
|
commands=
|
|
|
|
py.test -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
|
|
|
|
|
|
|
[testenv:py33-pexpect]
|
|
|
|
changedir=testing
|
2014-03-28 21:51:00 +08:00
|
|
|
basepython=python3.3
|
2013-11-21 03:00:59 +08:00
|
|
|
deps={[testenv:py27-pexpect]deps}
|
|
|
|
commands=
|
|
|
|
py.test -rfsxX test_pdb.py test_terminal.py test_unittest.py
|
|
|
|
|
2012-10-22 17:14:18 +08:00
|
|
|
[testenv:py27-nobyte]
|
|
|
|
changedir=.
|
|
|
|
basepython=python2.7
|
|
|
|
deps=pytest-xdist
|
2013-08-15 17:52:55 +08:00
|
|
|
distribute=true
|
2012-10-22 17:14:18 +08:00
|
|
|
setenv=
|
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
commands=
|
|
|
|
py.test -n3 -rfsxX \
|
2013-05-22 21:24:58 +08:00
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
2010-07-07 18:41:15 +08:00
|
|
|
|
2014-03-28 21:44:51 +08:00
|
|
|
[testenv:py27-trial]
|
2010-11-24 18:48:55 +08:00
|
|
|
changedir=.
|
2014-03-28 21:44:51 +08:00
|
|
|
basepython=python2.7
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=twisted
|
2010-11-24 18:48:55 +08:00
|
|
|
commands=
|
2013-07-30 17:26:15 +08:00
|
|
|
py.test -rsxf \
|
2011-08-21 00:37:00 +08:00
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing/test_unittest.py}
|
2014-03-28 21:44:51 +08:00
|
|
|
|
|
|
|
[testenv:py33-trial]
|
|
|
|
changedir=.
|
|
|
|
basepython=python3.3
|
|
|
|
deps={[testenv:py27-trial]deps}
|
|
|
|
commands=
|
|
|
|
py.test -rsxf \
|
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing/test_unittest.py}
|
|
|
|
|
2010-11-18 21:56:16 +08:00
|
|
|
[testenv:doctest]
|
|
|
|
changedir=.
|
|
|
|
commands=py.test --doctest-modules _pytest
|
|
|
|
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=
|
2014-09-27 23:28:29 +08:00
|
|
|
{envpython} plugins_index/plugins_index.py
|
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]
|
|
|
|
basepython=python3.3
|
|
|
|
changedir=doc/en
|
|
|
|
deps=PyYAML
|
|
|
|
commands= py.test -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
|
|
|
|
|
2012-10-07 19:06:17 +08:00
|
|
|
[testenv:regen]
|
2014-08-08 03:41:51 +08:00
|
|
|
basepython=python3.4
|
2012-10-07 19:06:17 +08:00
|
|
|
changedir=doc/en
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=sphinx
|
|
|
|
PyYAML
|
2012-10-07 19:06:17 +08:00
|
|
|
commands=
|
2012-10-18 21:06:55 +08:00
|
|
|
rm -rf /tmp/doc-exec*
|
2012-11-20 20:42:00 +08:00
|
|
|
#pip install pytest==2.3.4
|
2012-10-07 19:06:17 +08:00
|
|
|
make regen
|
|
|
|
|
2010-07-01 23:59:35 +08:00
|
|
|
[testenv:py31]
|
2013-05-07 22:26:56 +08:00
|
|
|
deps=nose>=1.0
|
2010-10-10 19:48:49 +08:00
|
|
|
|
2010-11-14 02:46:28 +08:00
|
|
|
[testenv:py31-xdist]
|
|
|
|
deps=pytest-xdist
|
|
|
|
commands=
|
|
|
|
py.test -n3 -rfsxX \
|
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml []
|
|
|
|
|
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=
|
2011-09-25 13:40:43 +08:00
|
|
|
{envpython} {envbindir}/py.test-jython \
|
2011-01-13 01:03:55 +08:00
|
|
|
-rfsxX --junitxml={envlogdir}/junit-{envname}2.xml []
|
2010-10-28 01:35:27 +08:00
|
|
|
|
2014-07-31 06:16:51 +08:00
|
|
|
[testenv:py27-cxfreeze]
|
|
|
|
changedir=testing/cx_freeze
|
|
|
|
basepython=python2.7
|
|
|
|
commands=
|
2015-04-23 06:46:06 +08:00
|
|
|
{envpython} install_cx_freeze.py
|
2014-07-31 06:16:51 +08:00
|
|
|
{envpython} runtests_setup.py build --build-exe build
|
2014-07-31 08:50:00 +08:00
|
|
|
{envpython} tox_run.py
|
2014-07-31 06:16:51 +08:00
|
|
|
|
2015-06-16 06:40:49 +08:00
|
|
|
[testenv:coveralls]
|
2015-06-16 07:37:55 +08:00
|
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
|
|
changedir=
|
|
|
|
usedevelop=True
|
2015-06-16 06:40:49 +08:00
|
|
|
basepython=python3.4
|
|
|
|
deps =
|
|
|
|
{[testenv]deps}
|
|
|
|
coveralls
|
|
|
|
commands=
|
2015-06-16 07:37:55 +08:00
|
|
|
coverage run --source=_pytest {envdir}/bin/py.test 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
|
2012-06-21 17:20:29 +08:00
|
|
|
pep8ignore = E401 E225 E261 E128 E124 E302
|
2013-06-28 18:57:10 +08:00
|
|
|
norecursedirs = .tox ja .hg
|