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

Loading…
Cancel
Save