fix: handle mutation child errors and processes option - #42
Open
wheesnoza wants to merge 1 commit into
Open
Conversation
wheesnoza
force-pushed
the
fix/parallel-processes-and-child-errors
branch
from
August 21, 2026 12:29
56a9783 to
c90982a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR proposes a small fix for two related behaviours around mutation parallel execution. I am opening it to confirm whether these behaviours are intentional, but both currently seem to make mutation results less reliable.
--parallelis removed from the initial test run so mutation testing can collect coverage before running mutations itself.--processes, however, is still forwarded to that initial run. When--parallelis removed but--processesremains, the initial run can fail before mutation testing starts.Mutation child processes also treat every non-successful exit as a tested mutation. That makes assertion failures and runtime errors indistinguishable, so a child process error can be counted as a killed mutation and inflate the score.
What changed
ProcessesOptionis now removed from the forwarded initial test-run arguments after being read into the mutation configuration.Mutation child processes now distinguish assertion failures from execution errors. Exit code
1is still reported astested, while other non-successful exits are reported aserrored.The new
erroredresult is wired through the result enum, counters, events, and printer output.Testing
composer test