test: add Infection mutation testing with enforced score and dashboard reporting#44
Merged
Merged
Conversation
Baseline run: 115 mutants, 93 killed, Covered Code MSI 80% against 100% line coverage. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The minimum mutation score (minCoveredMsi: 78) lives in infection.json5 only, so the Taskfile, CI and local runs all share one threshold without repeating command line flags. CI annotates escaped mutants inline on PRs via --logger-github and publishes develop results to the Stryker dashboard, which feeds the new README mutation score badge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #44 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 62 62
===========================================
Files 9 9
Lines 282 282
===========================================
Hits 282 282
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Jun 11, 2026
This was referenced Jun 11, 2026
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jun 11, 2026
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.
Summary
Adds Infection mutation testing to evaluate test suite sensitivity. Baseline run: 115 mutants, Covered Code MSI 80–84% against 100% line coverage, full run completes in ~14 seconds.
Features Added
infection.json5config —minCoveredMsi: 78andthreads: maxlive in the config file as the single source of truth, so no command line flags are duplicated across Taskfile/CItask test:mutationtask, also appended totask pr:actionsmutation-testsrunning with--logger-github(inline PR annotations for escaped mutants);GITHUB_*env vars are passed into the container so Infection's CI detection worksdevelop(uses theSTRYKER_DASHBOARD_API_KEYsecret), feeding a new mutation score badge in the READMEFiles Changed
composer.json- infection/infection dev dependency + allow-plugins entryinfection.json5(new) - Infection config incl. threshold and Stryker dashboard loggerTaskfile.yml-test:mutationtask, added topr:actions.github/workflows/php.yaml-mutation-testsjobREADME.md- badge + Mutation Testing sectionCHANGELOG.md- Unreleased/Added bullet.gitignore- generatedinfection.log/infection.htmlTest Plan
task test:mutation— passes locally (Covered MSI 84% ≥ 78%), dashboard upload correctly skipped outside CItask lint:markdown/task lint:yaml— passmutation-testsjob; dashboard upload and badge activate on first push todevelopafter mergeNotes
minCoveredMsiabove 90developrun seeds the dashboard🤖 Generated with Claude Code