Skip to content

Commit ff738da

Browse files
committed
tox.ini: Switch to use py.test
because it's awesome.
1 parent 681f00e commit ff738da

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

tox.ini

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,24 @@ envlist =
33
cover,cover3,py26,py27,py32,py33,py34,pypy
44

55
[testenv]
6-
commands =
7-
python setup.py test -q
86
deps =
7+
pytest >= 2.5.2
98
meld3 >= 1.0.0
109
mock >= 0.5.0
10+
commands =
11+
py.test {posargs}
1112

1213
[testenv:cover]
13-
basepython =
14-
python2.6
14+
basepython = python2.6
1515
commands =
16-
python setup.py nosetests --with-xunit --with-xcoverage --cover-package=supervisor --cover-erase
16+
py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
1717
deps =
1818
{[testenv]deps}
19-
nose
20-
coverage
21-
nosexcover
19+
pytest-cov
2220

2321
[testenv:cover3]
24-
basepython =
25-
python3.3
22+
basepython = python3.3
2623
commands =
27-
python setup.py nosetests --with-xunit --with-xcoverage --cover-package=supervisor --cover-erase
24+
py.test --cov=supervisor --cov-report=term-missing --cov-report=xml {posargs}
2825
deps =
2926
{[testenv:cover]deps}

0 commit comments

Comments
 (0)