Skip to content

Commit 6c8b5ad

Browse files
chore(tests): run tests in parallel
1 parent 1bf8218 commit 6c8b5ad

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ dev-dependencies = [
5656
"importlib-metadata>=6.7.0",
5757
"rich>=13.7.1",
5858
"inline-snapshot >=0.7.0",
59-
"nest_asyncio==1.6.0"
59+
"nest_asyncio==1.6.0",
60+
"pytest-xdist>=3.6.1",
6061
]
6162

6263
[tool.rye.scripts]
@@ -128,7 +129,7 @@ replacement = '[\1](https://github.com/writer/writer-python/tree/main/\g<2>)'
128129

129130
[tool.pytest.ini_options]
130131
testpaths = ["tests"]
131-
addopts = "--tb=short"
132+
addopts = "--tb=short -n auto"
132133
xfail_strict = true
133134
asyncio_mode = "auto"
134135
asyncio_default_fixture_loop_scope = "session"

requirements-dev.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ exceptiongroup==1.2.2
3434
# via pytest
3535
executing==2.2.0
3636
# via inline-snapshot
37+
execnet==2.1.1
38+
# via pytest-xdist
3739
filelock==3.12.4
3840
# via virtualenv
3941
h11==0.14.0
@@ -79,7 +81,9 @@ pygments==2.18.0
7981
pyright==1.1.399
8082
pytest==8.3.3
8183
# via pytest-asyncio
84+
# via pytest-xdist
8285
pytest-asyncio==0.24.0
86+
pytest-xdist==3.7.0
8387
python-dateutil==2.8.2
8488
# via time-machine
8589
pytz==2023.3.post1

0 commit comments

Comments
 (0)