wsme/tox.ini
2012-05-14 23:29:54 +02:00

58 lines
1.3 KiB
INI

# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py32,pypy,py25simplejson,tg11,coverage
indexserver =
TG15 = http://www.turbogears.org/1.5/downloads/current/index
TG20 = http://www.turbogears.org/2.0/downloads/current/index
TG21 = http://www.turbogears.org/2.1/downloads/current/index
[common]
testtools =
nose
webtest
coverage
[testenv]
deps =
nose
webtest
coverage
transaction
#commands=nosetests --verbose []
commands=
{envbindir}/coverage run -p {envbindir}/nosetests -w ./wsme/tests --verbose {posargs}
downloadcache=.tox/cache
[testenv:py25simplejson]
basepython=python2.5
deps=
nose
webtest
coverage
simplejson
transaction<=1.1.1
[testenv:tg11]
basepython=python2.5
deps=
nose
webtest
coverage
simplejson
commands=
{envbindir}/easy_install -i http://www.turbogears.org/1.1/downloads/current/index/ 'TurboGears<1.1.99'
{envbindir}/coverage run -p {envbindir}/nosetests -w tests test_tg1.py --verbose {posargs}
[testenv:coverage]
basepython=python
deps=
coverage
commands=
{envbindir}/coverage erase
{envbindir}/coverage combine
{envbindir}/coverage xml wsme/*.py wsme/protocols/*.py
{envbindir}/coverage report --show-missing wsme/*.py wsme/protocols/*.py