Skip to content

test: Use single thread for tests when passing options - #1631

Merged
tpoliaw merged 1 commit into
mainfrom
just-unit-thread-count
Aug 21, 2026
Merged

test: Use single thread for tests when passing options#1631
tpoliaw merged 1 commit into
mainfrom
just-unit-thread-count

Conversation

@tpoliaw

@tpoliaw tpoliaw commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@tpoliaw
tpoliaw requested a review from a team as a code owner August 18, 2026 10:56
@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.96%. Comparing base (5d7e2fa) to head (2220bc0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1631   +/-   ##
=======================================
  Coverage   95.96%   95.96%           
=======================================
  Files          45       45           
  Lines        3323     3323           
=======================================
  Hits         3189     3189           
  Misses        134      134           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tpoliaw
tpoliaw added this pull request to the merge queue Aug 21, 2026
Merged via the queue into main with commit 43d8edf Aug 21, 2026
32 of 33 checks passed
@tpoliaw
tpoliaw deleted the just-unit-thread-count branch August 21, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants