Skip to content

fix: prevent false "empty test suite" when merging parallel results#1742

Open
lazerg wants to merge 1 commit into
pestphp:4.xfrom
lazerg:fix/issue-1738-parallel-empty-suite
Open

fix: prevent false "empty test suite" when merging parallel results#1742
lazerg wants to merge 1 commit into
pestphp:4.xfrom
lazerg:fix/issue-1738-parallel-empty-suite

Conversation

@lazerg

@lazerg lazerg commented Jun 26, 2026

Copy link
Copy Markdown

What:

  • Bug Fix

Description:

When parallel results are merged in WrapperRunner::complete(), the merged numberOfTests was built by summing each worker's hasTests() boolean. A streaming worker can report numberOfTests = 0 even after running tests (only numberOfTestsRun is reliable), so when every worker reports hasTests() === false the merged result looks empty — and with failOnEmptyTestSuite on, the run exits non-zero despite all tests passing. This sums the reliable numberOfTestsRun instead.

Related:

Closes #1738

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.

[Bug] Parallel runner reports false "empty test suite" (exit 1 despite all tests passing) due to boolean-sum merge of numberOfTests

1 participant