pytest / tox.ini

[tox]
distshare={homedir}/.tox/distshare
envlist=py26,py27,py31,py32,py33,py27-xdist,py25,trial
indexserver=
    pypi = http://pypi.python.org/simple
    testrun = http://pypi.testrun.org
    default = http://pypi.testrun.org

[testenv]
changedir=testing
commands= py.test --lsof -rfsxX --junitxml={envlogdir}/junit-{envname}.xml []
deps=
    :pypi:pexpect
    :pypi:nose

[testenv:genscript]
changedir=.
commands= py.test --genscript=pytest1
deps=py>=1.4.0

[testenv:py27-xdist]
changedir=.
basepython=python2.7
deps=pytest-xdist
commands=
  py.test -n3 -rfsxX \
        --ignore .tox --junitxml={envlogdir}/junit-{envname}.xml testing

[testenv:trial]
changedir=.
basepython=python2.6
deps=:pypi:twisted
     :pypi:pexpect
     py>=1.4.5.dev1
commands=
  py.test -rsxf testing/test_unittest.py \
        --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
deps=:pypi:sphinx
     :pypi:PyYAML

commands=
    make clean
    make html

[testenv:regen]
basepython=python
changedir=doc/en
deps=:pypi:sphinx
     :pypi:PyYAML
commands=
    rm -rf /tmp/doc-exec*
    make regen

[testenv:py31]
deps=:pypi:nose>=1.0

[testenv:py31-xdist]
deps=pytest-xdist
commands=
  py.test -n3 -rfsxX \
        --junitxml={envlogdir}/junit-{envname}.xml []

[testenv:py32]
deps=py>=1.4.0

[testenv:py33]
deps=py>=1.4.0

[testenv:jython]
changedir=testing
commands=
    {envpython} {envbindir}/py.test-jython \
        -rfsxX --junitxml={envlogdir}/junit-{envname}2.xml []

[pytest]
minversion=2.0
plugins=pytester
#--pyargs --doctest-modules --ignore=.tox
addopts= -rxs
rsyncdirs=tox.ini pytest.py _pytest testing
python_files=test_*.py *_test.py
python_classes=Test Acceptance
python_functions=test
pep8ignore = E401 E225 E261 E128 E124 E302
norecursedirs = .tox ja
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.