Skip to content

Commit

Permalink
Use pytest as test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jul 2, 2020
1 parent 4385057 commit 280d132
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
[tox]
envlist=flake8,py35,py36,py37,pypy,pypy3,docs,coverage
envlist=flake8,py35,py36,py37,pypy3,docs
skip_missing_interpreters=True

[testenv]
commands=
coverage run --branch --include="socketio/*" setup.py test
coverage report --show-missing
coverage erase
pytest -p no:logging --cov=socketio --cov-branch --cov-report=term-missing
deps=
coverage
pytest
pytest-cov
mock
basepython =
flake8: python3.7
py35: python3.5
py36: python3.6
py37: python3.7
pypy: pypy
pypy3: pypy3
docs: python3.7
coverage: python3.7
Expand All @@ -35,9 +33,3 @@ whitelist_externals=
make
commands=
make html

[testenv:coverage]
commands=
coverage run --branch --source=socketio setup.py test
coverage html
coverage erase

0 comments on commit 280d132

Please sign in to comment.