Skip to content

ci: run mutation testing with Infection - #14

Merged
roxblnfk merged 3 commits into
1.xfrom
ci/infection
Nov 20, 2026
Merged

roxblnfk merged 3 commits into
1.xfrom
ci/infection

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

Mutation testing runs with Infection through the Testo adapter (testo/bridge-infection).

  • Infection is installed in vendor-bin/infection; composer infect runs it locally, composer infect:ci in CI.
  • infection.json mutates src against the Unit suite, with minMsi / minCoveredMsi set to 86.
  • .github/workflows/infection.yml calls the shared cycle/gh-actions infection workflow; pushes to 1.x upload the report to the Stryker dashboard, and the README shows its badge.

Review notes

Why?

The mutation score shows how much of the code the tests actually check, not only how much they execute.

Checklist

  • Tested
    • Infection passes locally: MSI 89% (covered MSI the same, mutation coverage 100%), about 50s on 4 threads

@roxblnfk
roxblnfk requested a review from a team November 20, 2026 15:25
@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (596b37b) to head (65a45fb).
⚠️ Report is 1 commits behind head on 1.x.

Additional details and impacted files
@@           Coverage Diff           @@
##              1.x      #14   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          12       12           
  Lines         208      208           
=======================================
  Hits          207      207           
  Misses          1        1           
Flag Coverage Δ
unit 99.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit f01bc3d into 1.x Nov 20, 2026
13 of 14 checks passed
@roxblnfk
roxblnfk deleted the ci/infection branch November 20, 2026 16:01
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.

1 participant