Skip to content

Commit f34b4a1

Browse files
authored
Add parallel test target, using pytest-xdist (#8972)
2 parents 0ba6961 + 6a60b2e commit f34b4a1

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ test:
9797
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
9898
python3 -m pytest -qq
9999

100+
.PHONY: test-p
101+
test-p:
102+
python3 -c "import xdist" > /dev/null 2>&1 || python3 -m pip install pytest-xdist
103+
python3 -m pytest -qq -n auto
104+
105+
100106
.PHONY: valgrind
101107
valgrind:
102108
python3 -c "import pytest_valgrind" > /dev/null 2>&1 || python3 -m pip install pytest-valgrind

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ optional-dependencies.tests = [
7070
"pytest",
7171
"pytest-cov",
7272
"pytest-timeout",
73+
"pytest-xdist",
7374
"trove-classifiers>=2024.10.12",
7475
]
7576

0 commit comments

Comments
 (0)