Fix code coverage for pecan tests

This commit is contained in:
Christophe de Vienne 2013-01-17 11:55:43 +01:00
parent 4cf2c37ae1
commit 98a89b808b

View File

@ -118,9 +118,13 @@ deps=
coverage
simplejson
pecan
setenv=
PYTHONPATH={toxinidir}
COVERAGE_FILE=.coverage.{envname}
commands=
{envbindir}/coverage run --source wsme {envbindir}/nosetests -w tests/pecantest test/tests/test_ws.py --with-xunit --xunit-file nosetests-{envname}.xml --verbose {posargs}
{envbindir}/coverage xml -o coverage-{envname}.xml wsme/*.py wsme/rest/*.py
{envbindir}/coverage xml -o coverage-{envname}.xml
{envbindir}/coverage report --show-missing wsme/*.py wsme/rest/*.py
[testenv:coverage]