Browse Source

Use pytest as test runner

pull/518/head
Miguel Grinberg 5 years ago
parent
commit
280d132d28
No known key found for this signature in database GPG Key ID: 36848B262DF5F06C
  1. 16
      tox.ini

16
tox.ini

@ -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
@ -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

Loading…
Cancel
Save