Skip to content

Commit b43f2a1

Browse files
author
Nils Bars
committed
Increase pytest workers from 4 to 10
Matches the number of E2E/integration test files for optimal parallelization. Reduces test runtime from ~3:49 to ~3:06.
1 parent c419a09 commit b43f2a1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/pytest.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ markers =
99
unit: marks tests as unit tests
1010
offline: marks tests that can run without REF
1111
needs_ref: marks tests that require REF to be running
12-
addopts = -v --tb=short -n 4 --dist loadfile --cov=helpers --cov-report=term-missing --cov-report=html:coverage_reports/htmlcov --cov-report=xml:coverage_reports/coverage.xml
12+
addopts = -v --tb=short -n 10 --dist loadfile --cov=helpers --cov-report=term-missing --cov-report=html:coverage_reports/htmlcov --cov-report=xml:coverage_reports/coverage.xml
1313
filterwarnings =
1414
ignore::DeprecationWarning
1515
timeout = 300
1616

17-
# Parallel execution with pytest-xdist (default: 4 workers with loadfile distribution)
18-
# Override workers: pytest -n auto (auto-detect CPUs) or pytest -n 8
19-
# Disable parallel: pytest -n 0
17+
# Parallel execution with pytest-xdist (default: 10 workers with loadfile distribution)
18+
# 10 workers matches the number of E2E/integration test files for optimal parallelization
19+
# Override workers: pytest -n auto (auto-detect CPUs) or pytest -n 0 (serial)
2020
# Each worker gets its own REF instance for E2E tests
2121
# loadfile keeps all tests from the same file on one worker (preserves cross-class state)

0 commit comments

Comments
 (0)