diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 07:43:09 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-08 07:43:09 -0800 |
commit | 8e7e7148c662cbf28d5499ecc3d2a5c7780da271 (patch) | |
tree | ca94b9de9c087d390a2625e4367a1fb166af6f24 /tox.ini | |
parent | 944e87e4fbcec8cf339fbbebb6283f57b86316db (diff) | |
download | pastedeploy-8e7e7148c662cbf28d5499ecc3d2a5c7780da271.tar.gz |
Switch to pytest
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 25 |
1 files changed, 22 insertions, 3 deletions
@@ -1,10 +1,29 @@ [tox] -envlist = py26, py27, py33, py34, py35, pypy +envlist = py26, py27, py33, py34, py35, pypy, cover, cover3 [testenv] deps = - nose # Paste works on Python 3 since Paste 2.0 Paste -commands = {envpython} setup.py test + pytest + pytest-cov +commands = + py.test {posargs:tests/} +[testenv:cover] +basepython = python2.7 +usedevelop = True +deps = + {[testenv]deps} + pytest-cov +commands = + py.test {posargs:--cov=paste/deploy --cov-report=xml --cov-report=html --cov-report=term-missing tests/} + +[testenv:cover3] +basepython = python3.5 +usedevelop = True +deps = + {[testenv]deps} + pytest-cov +commands = + py.test {posargs:--cov=paste/deploy --cov-report=xml --cov-report=html --cov-report=term-missing tests/} |