2010-07-05 21:55:21 +08:00
|
|
|
[tox]
|
|
|
|
distshare={homedir}/.tox/distshare
|
2012-11-05 19:21:58 +08:00
|
|
|
envlist=py24,py26,py27,py27-nobyte,py31,py32,py33,py27-xdist,py25,trial
|
2010-11-09 04:13:24 +08:00
|
|
|
indexserver=
|
2011-01-13 01:03:55 +08:00
|
|
|
pypi = http://pypi.python.org/simple
|
2010-11-26 20:37:00 +08:00
|
|
|
testrun = http://pypi.testrun.org
|
2012-11-05 19:21:58 +08:00
|
|
|
default = http://pypi.testrun.org
|
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=
|
2011-01-13 01:03:55 +08:00
|
|
|
:pypi:pexpect
|
|
|
|
:pypi:nose
|
2010-10-10 19:48:49 +08:00
|
|
|
|
2010-10-26 16:09:41 +08:00
|
|
|
[testenv:genscript]
|
|
|
|
changedir=.
|
|
|
|
commands= py.test --genscript=pytest1
|
|
|
|
|
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
|
2010-07-07 18:41:15 +08:00
|
|
|
commands=
|
2010-07-29 17:22:16 +08:00
|
|
|
py.test -n3 -rfsxX \
|
2012-10-22 17:14:18 +08:00
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml testing
|
|
|
|
|
|
|
|
[testenv:py27-nobyte]
|
|
|
|
changedir=.
|
|
|
|
basepython=python2.7
|
|
|
|
deps=pytest-xdist
|
|
|
|
setenv=
|
|
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
|
|
commands=
|
|
|
|
py.test -n3 -rfsxX \
|
|
|
|
--junitxml={envlogdir}/junit-{envname}.xml []
|
2010-07-07 18:41:15 +08:00
|
|
|
|
2010-11-24 18:48:55 +08:00
|
|
|
[testenv:trial]
|
|
|
|
changedir=.
|
|
|
|
basepython=python2.6
|
2011-01-13 01:03:55 +08:00
|
|
|
deps=:pypi:twisted
|
2011-08-21 00:37:00 +08:00
|
|
|
:pypi:pexpect
|
2010-11-24 18:48:55 +08:00
|
|
|
commands=
|
2011-12-29 01:43:56 +08:00
|
|
|
py.test -rsxf testing/test_unittest.py \
|
2011-08-21 00:37:00 +08:00
|
|
|
--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
|
2011-01-13 01:03:55 +08:00
|
|
|
deps=:pypi:sphinx
|
2012-10-18 18:24:50 +08:00
|
|
|
:pypi: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
|
|
|
|
2012-10-07 19:06:17 +08:00
|
|
|
[testenv:regen]
|
|
|
|
basepython=python
|
|
|
|
changedir=doc/en
|
|
|
|
deps=:pypi:sphinx
|
2012-10-18 18:24:50 +08:00
|
|
|
:pypi:PyYAML
|
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-01 23:59:35 +08:00
|
|
|
[testenv:py31]
|
2011-12-14 19:29:25 +08:00
|
|
|
deps=:pypi: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-09-28 23:37:20 +08:00
|
|
|
[testenv:py32]
|
2010-11-26 20:37:00 +08:00
|
|
|
deps=py>=1.4.0
|
2010-10-16 02:35:21 +08:00
|
|
|
|
2012-09-17 22:36:10 +08:00
|
|
|
[testenv:py33]
|
|
|
|
deps=py>=1.4.0
|
2012-10-25 18:08:11 +08:00
|
|
|
:pypi:nose
|
2012-09-17 22:36:10 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
[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
|
2012-06-21 17:07:22 +08:00
|
|
|
addopts= -rxs
|
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
|
2012-10-18 21:32:30 +08:00
|
|
|
norecursedirs = .tox ja
|