Skip to content

Commit 4d0678c

Browse files
committed
Add parallel test target, using pytest-xdist
1 parent 3c71559 commit 4d0678c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ sdist:
9595
.PHONY: test
9696
test:
9797
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
98-
python3 -m pytest -qq
98+
python3 -m pytest -qq Tests/
99+
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 Tests/
104+
99105

100106
.PHONY: valgrind
101107
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)