From 280d132d284699cc1ae641b1e41403ceab6c66f5 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Fri, 3 Jul 2020 00:04:51 +0100 Subject: [PATCH] Use pytest as test runner --- tox.ini | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/tox.ini b/tox.ini index eca378cf..0c6afc77 100644 --- a/tox.ini +++ b/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