summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup.cfg17
-rw-r--r--tox.ini2
2 files changed, 10 insertions, 9 deletions
diff --git a/setup.cfg b/setup.cfg
index ac1ceb8..77afa15 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -46,7 +46,8 @@ where=src
[options.extras_require]
testing =
- nose
+ pytest
+ pytest-cover
coverage>=5.0
docs =
@@ -54,13 +55,13 @@ docs =
docutils
pylons-sphinx-themes>=1.0.9
-[nosetests]
-match=^test
-nocapture=1
-cover-package=waitress
-cover-erase=1
-
[bdist_wheel]
universal = 1
-
+[tool:pytest]
+python_files = test_*.py
+# For the benefit of test_wasyncore.py
+python_classes = Test_*
+testpaths =
+ tests
+addopts = -W always --cov --cov-report=term-missing
diff --git a/tox.ini b/tox.ini
index 04ca1d5..8db0f88 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,7 +10,7 @@ isolated_build = True
[testenv]
commands =
python --version
- nosetests {posargs:}
+ pytest {posargs:}
extras =
testing
setenv =