Repository navigation
Switch to infection/infection - #185
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR migrates mutation testing from the Roave static-analysis integration to the standard Infection package, CLI, and CI workflow, while configuring CI to ignore mutation-score indicators without mutations and updating developer documentation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #185 +/- ##
=========================================
Coverage 87.18% 87.18%
Complexity 225 225
=========================================
Files 19 19
Lines 710 710
=========================================
Hits 619 619
Misses 91 91 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="docs/internals.md" line_range="16" />
<code_context>
```shell
-./vendor/bin/roave-infection-static-analysis-plugin
+./vendor/bin/infection
```
</code_context>
<issue_to_address>
**Static-analysis mutation checks disappear**
When a mutant introduces a static-analysis error that PHPUnit does not detect, the direct Infection command runs mutation tests but no longer runs the removed Roave static-analysis plugin, so mutants that introduce static-analysis errors without failing PHPUnit tests pass the mutation job.
Retain equivalent static-analysis checks for Infection mutants, or explicitly accept and document the reduced mutation coverage.
Also at `composer.json:51`.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: docs/internals.md:16
|
|
||
| ```shell | ||
| ./vendor/bin/roave-infection-static-analysis-plugin | ||
| ./vendor/bin/infection |
There was a problem hiding this comment.
🟡 Medium · Static-analysis mutation checks disappear
When a mutant introduces a static-analysis error that PHPUnit does not detect, the direct Infection command runs mutation tests but no longer runs the removed Roave static-analysis plugin, so mutants that introduce static-analysis errors without failing PHPUnit tests pass the mutation job.
Retain equivalent static-analysis checks for Infection mutants, or explicitly accept and document the reduced mutation coverage.
Also at composer.json:51.
Prompt for AI agents
In `docs/internals.md` at line 16:
**Static-analysis mutation checks disappear**
When a mutant introduces a static-analysis error that PHPUnit does not detect, the direct Infection command runs mutation tests but no longer runs the removed Roave static-analysis plugin, so mutants that introduce static-analysis errors without failing PHPUnit tests pass the mutation job.
Retain equivalent static-analysis checks for Infection mutants, or explicitly accept and document the reduced mutation coverage.
Also at `composer.json:51`.
Summary by Sourcery
Switch mutation testing from the Roave static-analysis plugin to the standard Infection integration.
Enhancements:
CI:
Documentation: