Skip to content

Commit 94308de

Browse files
chore(tests): run tests in parallel
1 parent 8d89489 commit 94308de

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dev-dependencies = [
5555
"importlib-metadata>=6.7.0",
5656
"rich>=13.7.1",
5757
"nest_asyncio==1.6.0",
58+
"pytest-xdist>=3.6.1",
5859
"python-dotenv",
5960
"playwright",
6061
"selenium",
@@ -134,7 +135,7 @@ replacement = '[\1](https://github.com/browserbase/sdk-python/tree/main/\g<2>)'
134135

135136
[tool.pytest.ini_options]
136137
testpaths = ["tests"]
137-
addopts = "--tb=short"
138+
addopts = "--tb=short -n auto"
138139
xfail_strict = true
139140
asyncio_mode = "auto"
140141
asyncio_default_fixture_loop_scope = "session"

requirements-dev.lock

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ exceptiongroup==1.2.2
3939
# via pytest
4040
# via trio
4141
# via trio-websocket
42+
execnet==2.1.1
43+
# via pytest-xdist
4244
filelock==3.16.1
4345
# via virtualenv
4446
greenlet==3.1.1
@@ -89,17 +91,19 @@ pyee==12.0.0
8991
# via playwright
9092
pygments==2.18.0
9193
# via rich
94+
pyright==1.1.399
9295
pysocks==1.7.1
9396
# via urllib3
94-
pyright==1.1.399
9597
pytest==8.3.3
9698
# via pytest-asyncio
9799
# via pytest-base-url
98100
# via pytest-playwright
101+
# via pytest-xdist
99102
pytest-asyncio==0.24.0
100103
pytest-base-url==2.1.0
101104
# via pytest-playwright
102105
pytest-playwright==0.5.2
106+
pytest-xdist==3.8.0
103107
python-dateutil==2.9.0.post0
104108
# via time-machine
105109
python-dotenv==1.0.1

0 commit comments

Comments
 (0)