test: add Infection mutation testing with enforced score and dashboard reporting#49
Merged
Merged
Conversation
…d reporting Baseline run: 198 mutants, 141 killed, Covered Code MSI 71% against 100% line coverage; full run completes in ~14 seconds. The minimum score (minCoveredMsi: 68) lives in infection.json5 only, shared by task test:mutation, pr:actions and the CI job. CI annotates escaped mutants inline on PRs via --logger-github and publishes develop results to the Stryker dashboard, feeding the README 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 #49 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 71 71
===========================================
Files 1 1
Lines 185 185
===========================================
Hits 185 185
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 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
Mirrors the mutation-testing setup from itk-dev/openid-connect-bundle#44–#51. Baseline: 198 mutants, 141 killed — Covered Code MSI 71% against 100% line coverage; the full run takes ~14 seconds. All 57 escaped mutants are in
OpenIdConfigurationProvider(the library's one public class); follow-up PRs will kill them and ratchet the threshold.Features Added
infection.json5—minCoveredMsi: 68andthreads: maxlive in the config as the single source of truth (no flags duplicated across Taskfile/CI)task test:mutation, also appended totask pr:actions--logger-githubfor inline PR annotations;GITHUB_*env vars passed into the container for Infection's CI detectiondevelop(uses the repo'sSTRYKER_DASHBOARD_API_KEYsecret), feeding a new mutation score badge in the READMEFiles Changed
composer.json- infection/infection dev dependency + allow-plugins entry (normalized)infection.json5(new) - config incl. threshold and Stryker dashboard loggerTaskfile.yml-test:mutation, added topr:actions.github/workflows/php.yaml-mutation-testsjobREADME.md- badge + Mutation Testing sectionCHANGELOG.md- Unreleased bullet.gitignore- generatedinfection.log/infection.htmlTest Plan
task test:mutation— passes locally (71% ≥ 68%), dashboard upload correctly skipped outside CItask lint:yaml/task lint:markdown— passdevelopafter merge🤖 Generated with Claude Code