فهرست منبع

tox.ini: Switch to use py.test

because it's awesome.
Marc Abramowitz 10 سال پیش
والد
کامیت
ff738da577
1فایلهای تغییر یافته به همراه8 افزوده شده و 11 حذف شده
  1. 8 11
      tox.ini

+ 8 - 11
tox.ini

@@ -3,27 +3,24 @@ envlist =
     cover,cover3,py26,py27,py32,py33,py34,pypy
 
 [testenv]
-commands =
-    python setup.py test -q
 deps =
+    pytest >= 2.5.2
     meld3 >= 1.0.0
     mock >= 0.5.0
+commands =
+    py.test {posargs}
 
 [testenv:cover]
-basepython =
-    python2.6
+basepython = python2.6
 commands =
-    python setup.py nosetests --with-xunit --with-xcoverage --cover-package=supervisor --cover-erase
+    py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
 deps =
     {[testenv]deps}
-    nose
-    coverage
-    nosexcover
+    pytest-cov
 
 [testenv:cover3]
-basepython =
-    python3.3
+basepython = python3.3
 commands =
-    python setup.py nosetests --with-xunit --with-xcoverage --cover-package=supervisor --cover-erase
+    py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
 deps =
     {[testenv:cover]deps}