Skip to content

Commit 280d132

Browse files
Use pytest as test runner
1 parent 4385057 commit 280d132

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tox.ini

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
[tox]
2-
envlist=flake8,py35,py36,py37,pypy,pypy3,docs,coverage
2+
envlist=flake8,py35,py36,py37,pypy3,docs
33
skip_missing_interpreters=True
44

55
[testenv]
66
commands=
7-
coverage run --branch --include="socketio/*" setup.py test
8-
coverage report --show-missing
9-
coverage erase
7+
pytest -p no:logging --cov=socketio --cov-branch --cov-report=term-missing
108
deps=
11-
coverage
9+
pytest
10+
pytest-cov
1211
mock
1312
basepython =
1413
flake8: python3.7
1514
py35: python3.5
1615
py36: python3.6
1716
py37: python3.7
18-
pypy: pypy
1917
pypy3: pypy3
2018
docs: python3.7
2119
coverage: python3.7
@@ -35,9 +33,3 @@ whitelist_externals=
3533
make
3634
commands=
3735
make html
38-
39-
[testenv:coverage]
40-
commands=
41-
coverage run --branch --source=socketio setup.py test
42-
coverage html
43-
coverage erase

0 commit comments

Comments
 (0)