summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 12 insertions, 8 deletions
diff --git a/tox.ini b/tox.ini
index 202e29e30..dae31ddd6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,19 +5,23 @@ envlist =
[testenv]
commands =
- python setup.py -q dev
- python setup.py -q test -q
+ {envbindir}/python setup.py dev
+ {envbindir}/coverage run --source={toxinidir}/pyramid {envbindir}/nosetests --xunit-file=nosetests-{envname}.xml
+ {envbindir}/coverage xml -o coverage-{envname}.xml
+setenv =
+ COVERAGE_FILE=.coverage.{envname}
[testenv:cover]
-basepython =
- python2.6
commands =
- python setup.py -q dev
- nosetests --with-xunit --with-xcoverage
+ {envbindir}/coverage erase
+ {envbindir}/coverage combine
+ {envbindir}/coverage xml
+ {envbindir}/coverage report --show-missing --fail-under=100
deps =
- nosexcover
+ coverage
+setenv =
+ COVERAGE_FILE=.coverage
# we separate coverage into its own testenv because a) "last run wins" wrt
# cobertura jenkins reporting and b) pypy and jython can't handle any
# combination of versions of coverage and nosexcover that i can find.
-