about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-05-30 01:00:36 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-05-30 01:00:36 +0900
commit69d9939ccfcd6c441956dbcd0bef04fabc9cf5c4 (patch)
tree7c7e8e1462c85a3a8474f4c8bbb5f7ba467eec0b
parentdcb363d429b7c284946e04c53f1fc21456e8faff (diff)
downloadscadere-69d9939ccfcd6c441956dbcd0bef04fabc9cf5c4.tar.gz
Revert use of pytest-{cov,xdist}
-rw-r--r--README.md14
-rw-r--r--pyproject.toml8
2 files changed, 11 insertions, 11 deletions
diff --git a/README.md b/README.md
index d07b743..1967b9d 100644
--- a/README.md
+++ b/README.md
@@ -40,9 +40,8 @@ Options:
 
 ## Hacking
 
-Unit testing is done with [Hypothesis],
-[pytest]-{[asyncio][pytest-asyncio],[cov][pytest-cov],[xdist][pytest-xdist]}
-and [trustme].  Since scadere itself does not depend
+Unit testing is done with [pytest], [pytest-asyncio],
+[Hypothesis] and [trustme].  Since scadere itself does not depend
 on any Python package, it is safe to be tested in-tree:
 
     PYTHONPATH=src pytest
@@ -52,8 +51,10 @@ on any Python package, it is safe to be tested in-tree:
 Issues should be reported to [chung@loa.loang.net][loang mailing list].
 
 The mailing list also welcomes patches.  Please maintain
-a full branch coverage and keep the [hobgoblins][flake8] happy:
+a full branch [coverage] and keep the [hobgoblins][flake8] happy:
 
+    PYTHONPATH=src coverage run
+    coverage report
     flake8
 
 Patches should be sent using [`git send-email`][git send-email]
@@ -70,13 +71,12 @@ Scadere is free software: you can redistribute and/or modify it
 under the terms of the GNU [Affero General Public License][agpl]
 version 3 or later.
 
-[Hypothesis]: https://hypothesis.rtfd.io
 [pytest]: https://docs.pytest.org
 [pytest-asyncio]: https://pytest-asyncio.rtfd.io
-[pytest-cov]: https://pytest-cov.rtfd.io
-[pytest-xdist]: https://pytest-xdist.rtfd.io
+[Hypothesis]: https://hypothesis.rtfd.io
 [trustme]: https://trustme.rtfd.io
 [loang mailing list]: https://loa.loang.net/chung
+[coverage]: https://coverage.rtfd.io
 [flake8]: https://flake8.pycqa.org
 [git send-email]: https://git-send-email.io
 [agpl]: https://www.gnu.org/licenses/agpl
diff --git a/pyproject.toml b/pyproject.toml
index 11c5c89..60291a8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,12 +27,11 @@ Source = 'https://trong.loang.net/scadere'
 Inbox = 'https://loa.loang.net/chung'
 
 [project.optional-dependencies]
-dev = [ 'flake8',
+dev = [ 'coverage',
+        'flake8',
         'hypothesis',
         'pytest',
         'pytest-asyncio',
-        'pytest-cov',
-        'pytest-xdist',
         'trustme >= 1.2.0' ]
 
 [project.scripts]
@@ -40,7 +39,6 @@ scadere-check = 'scadere.check:main'
 scadere-listen = 'scadere.listen:main'
 
 [tool.pytest.ini_options]
-addopts = '-n auto --cov=.'
 asyncio_mode = 'auto'
 asyncio_default_fixture_loop_scope = 'function'
 testpaths = [ 'tst' ]
@@ -48,6 +46,8 @@ verbosity_assertions = 2
 
 [tool.coverage.run]
 branch = true
+command_line = '-m pytest'
+source = [ '.' ]
 
 [tool.coverage.report]
 fail_under = 100