test_ok1/tox.ini

146 lines
3.1 KiB
INI
Raw Normal View History

[tox]
distshare={homedir}/.tox/distshare
envlist=flakes,py26,py27,py34,pypy,py27-pexpect,py33-pexpect,py27-nobyte,py33,py27-xdist,py33-xdist,py27-trial,py33-trial,doctesting,py27-cxfreeze
2010-07-02 21:26:03 +08:00
[testenv]
changedir=testing
commands= py.test --lsof -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
deps=
2013-05-07 22:26:56 +08:00
nose
2014-03-27 02:37:49 +08:00
mock
[testenv:genscript]
changedir=.
commands= py.test --genscript=pytest1
[testenv:flakes]
changedir=
deps = pytest-flakes>=0.2
commands = py.test --flakes -m flakes _pytest testing
[testenv:py27-xdist]
changedir=.
basepython=python2.7
deps=pytest-xdist
2013-05-07 22:26:56 +08:00
mock
nose
commands=
py.test -n1 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
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 \
--junitxml={envlogdir}/junit-{envname}.xml testing
[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
basepython=python3.3
deps={[testenv:py27-pexpect]deps}
commands=
py.test -rfsxX test_pdb.py test_terminal.py test_unittest.py
[testenv:py27-nobyte]
changedir=.
basepython=python2.7
deps=pytest-xdist
distribute=true
setenv=
PYTHONDONTWRITEBYTECODE=1
commands=
py.test -n3 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
2014-03-28 21:44:51 +08:00
[testenv:py27-trial]
changedir=.
2014-03-28 21:44:51 +08:00
basepython=python2.7
2013-05-07 22:26:56 +08:00
deps=twisted
commands=
py.test -rsxf \
--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}
[testenv:doctest]
changedir=.
commands=py.test --doctest-modules _pytest
deps=
[testenv:doc]
basepython=python
changedir=doc/en
2013-05-07 22:26:56 +08:00
deps=sphinx
PyYAML
commands=
{envpython} plugins_index/plugins_index.py
make clean
make html
[testenv:doctesting]
basepython=python3.3
changedir=doc/en
deps=PyYAML
commands= py.test -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
[testenv:regen]
basepython=python3.4
changedir=doc/en
2013-05-07 22:26:56 +08:00
deps=sphinx
PyYAML
commands=
rm -rf /tmp/doc-exec*
#pip install pytest==2.3.4
make regen
[testenv:py31]
2013-05-07 22:26:56 +08:00
deps=nose>=1.0
[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]
changedir=testing
commands=
{envpython} {envbindir}/py.test-jython \
-rfsxX --junitxml={envlogdir}/junit-{envname}2.xml []
[testenv:py27-cxfreeze]
deps=cx_freeze
changedir=testing/cx_freeze
basepython=python2.7
commands=
{envpython} runtests_setup.py build --build-exe build
{envpython} tox_run.py
[pytest]
minversion=2.0
plugins=pytester
2012-06-12 19:41:29 +08:00
#--pyargs --doctest-modules --ignore=.tox
2015-03-24 20:41:49 +08:00
addopts= -rxsX
rsyncdirs=tox.ini pytest.py _pytest testing
python_files=test_*.py *_test.py testing/*/*.py
python_classes=Test Acceptance
python_functions=test
pep8ignore = E401 E225 E261 E128 E124 E302
norecursedirs = .tox ja .hg