Add parallel test target, using pytest-xdist
This commit is contained in:
parent
3c71559804
commit
4d0678ca33
8
Makefile
8
Makefile
@ -95,7 +95,13 @@ sdist:
|
||||
.PHONY: test
|
||||
test:
|
||||
python3 -c "import pytest" > /dev/null 2>&1 || python3 -m pip install pytest
|
||||
python3 -m pytest -qq
|
||||
python3 -m pytest -qq Tests/
|
||||
|
||||
.PHONY: test-p
|
||||
test-p:
|
||||
python3 -c "import xdist" > /dev/null 2>&1 || python3 -m pip install pytest-xdist
|
||||
python3 -m pytest -qq -n auto Tests/
|
||||
|
||||
|
||||
.PHONY: valgrind
|
||||
valgrind:
|
||||
|
||||
@ -70,6 +70,7 @@ optional-dependencies.tests = [
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-timeout",
|
||||
"pytest-xdist",
|
||||
"trove-classifiers>=2024.10.12",
|
||||
]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user