tox now combine code coverage results

This commit is contained in:
Christophe de Vienne 2012-05-03 20:02:22 +02:00
parent 5239a8fc93
commit 766e5057ac
2 changed files with 24 additions and 4 deletions

View File

@ -6,5 +6,5 @@ tag_date = true
release = egg_info -RDb ''
[nosetests]
with-coverage = true
cover-package = wsme
#with-coverage = true
#cover-package = wsme

24
tox.ini
View File

@ -1,6 +1,6 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py27,py32,pypy,py25simplejson
envlist = clean,py27,py32,pypy,py25simplejson,coverage
[common]
testtools =
@ -15,7 +15,10 @@ deps =
coverage
transaction
commands=nosetests --verbose []
#commands=nosetests --verbose []
commands=
{envbindir}/coverage run -p {envbindir}/nosetests -w ./wsme/tests --verbose {posargs}
downloadcache=.tox/cache
[testenv:py25simplejson]
@ -27,3 +30,20 @@ deps=
simplejson
transaction<=1.1.1
[testenv:clean]
basepython=python
deps=
coverage
commands=
{envbindir}/coverage erase
rm -f .coverage*
[testenv:coverage]
basepython=python
deps=
coverage
commands=
{envbindir}/coverage combine
{envbindir}/coverage xml wsme/*.py wsme/protocols/*.py
{envbindir}/coverage report wsme/*.py wsme/protocols/*.py