about summary refs log tree commit diff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2025-05-30 00:38:26 +0900
committerNguyễn Gia Phong <cnx@loang.net>2025-05-30 00:38:26 +0900
commitdcb363d429b7c284946e04c53f1fc21456e8faff (patch)
tree89f6686a801de3e14630f9ca332a9226ec529dc0 /pyproject.toml
parent82b754bdcf781eabf182293561838fabe21a467d (diff)
downloadscadere-dcb363d429b7c284946e04c53f1fc21456e8faff.tar.gz
Gotta go fast
Coverage does not seem to work with pytest-xdist without pytest-cov.
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 60291a8..11c5c89 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,11 +27,12 @@ Source = 'https://trong.loang.net/scadere'
 Inbox = 'https://loa.loang.net/chung'
 
 [project.optional-dependencies]
-dev = [ 'coverage',
-        'flake8',
+dev = [ 'flake8',
         'hypothesis',
         'pytest',
         'pytest-asyncio',
+        'pytest-cov',
+        'pytest-xdist',
         'trustme >= 1.2.0' ]
 
 [project.scripts]
@@ -39,6 +40,7 @@ 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' ]
@@ -46,8 +48,6 @@ verbosity_assertions = 2
 
 [tool.coverage.run]
 branch = true
-command_line = '-m pytest'
-source = [ '.' ]
 
 [tool.coverage.report]
 fail_under = 100