Skip to content

Conversation

@gehrisandro
Copy link
Collaborator

In Pest v4 mutation testing is broken, if the default PHP binary has no coverage driver. The reason is the different behaviour of PHPUnit 12 when an option like --coverage-php available.

Therefore, we must ensure to remove all coverage related options when running Pest tests on for a given mutation.

In my case, I have a default Laravel Herd installation and execute mutation testing like this: herd coverage vendor/bin/pest --mutate

@gehrisandro gehrisandro merged commit d9b32b6 into 4.x Aug 21, 2025
0 of 20 checks passed
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