From 2220bc0c3a5bf71b431551add35d22ea3b7b29d7 Mon Sep 17 00:00:00 2001 From: Peter Holloway Date: Tue, 18 Aug 2026 11:55:24 +0100 Subject: [PATCH] test: Use single thread for tests when passing options If specifying limited tests via options such as `-k specific_test` or only running previous failures with `--lf`, the overhead of creating additional workers and gathering results can be longer than the time saved by running tests in parallel. Leaving the multi-thread options as default means running `just unit` still runs the whole suite as quickly as it can. --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 0cc7222f59..c0a12dc7f0 100644 --- a/justfile +++ b/justfile @@ -25,8 +25,8 @@ lint: uv run prek run --all-files uv run pyright src tests -unit *OPTS: - uv run pytest -n logical tests/unit_tests {{ OPTS }} +unit *OPTS="-n logical": + uv run pytest tests/unit_tests {{ OPTS }} system *OPTS: uv run pytest tests/system_tests {{ OPTS }}