Add pytest-xdist for parallel tests

This commit is contained in:
Miguel de Benito Delgado
2025-06-29 11:13:43 +02:00
parent 9c6bb51b9d
commit 87f9d8a2e2
+2 -1
View File
@@ -53,6 +53,7 @@ dev = [
"mypy>=1.4.1",
"poethepoet>=0.20.0",
"pytest>=8.0.2",
"pytest-xdist>=3.5.0",
"ruff>=0.0.285",
"toml-sort>=0.24.2",
"types-pyyaml>=6.0.12.20241230",
@@ -116,7 +117,7 @@ PYDEVD_DISABLE_FILE_VALIDATION = "1"
# Uses PYTEST_MARKERS env var for default markers
# For custom markers, one can either adjust the env var or just use -m option in the command line,
# as the second -m option will override the first one.
test = "pytest test -vv -m \"${PYTEST_MARKERS:-not java and not rust and not isolated_process}\""
test = "pytest test -n auto -vv -m \"${PYTEST_MARKERS:-not java and not rust and not isolated_process}\""
_black_check = "black --check src scripts test"
_ruff_check = "ruff check src scripts test"
_black_format = "black src scripts test"