Skip to content

Count uncovered code in mutation testing (--with-uncovered) - #13

Merged
rasuvaeff merged 1 commit into
masterfrom
test/mutation-with-uncovered
Nov 1, 2026
Merged

rasuvaeff merged 1 commit into
masterfrom
test/mutation-with-uncovered

Conversation

@rasuvaeff

Copy link
Copy Markdown
Owner

Rollout of the mutation rule recorded in the monorepo AGENTS.md ("Мутации: --with-uncovered обязателен"). No src/ changes, so no release.

Testo credits a test only with the code its #[Covers] names, and Infection by default mutates only credited code. With --with-uncovered the mutants on code the tests execute but do not name are generated and counted in the overall MSI.

Changes

  • composer mutation: Composer\Config::disableProcessTimeout, then infection --threads=max --with-uncovered.
  • infection.json5: PublicVisibility off and global-ignoreSourceCodeByRegex for parameter defaults (as in the template). minMsi stays 96.
  • CHANGELOG entry. No new tests.

Numbers (local, pcov)

Before (--with-uncovered, old config) After
Mutants 90 76
Not Covered 14 0
Escaped 0 0
Ignored 0 0
Overall MSI 84% 100% (minMsi 96, unchanged)

All 14 Not Covered mutants were PublicVisibility or parameter-default signature lines.
composer mutation exits 0 twice in a row; composer build and composer rector are green.

@rasuvaeff rasuvaeff added the enhancement New feature or request label Nov 1, 2026
@rasuvaeff rasuvaeff self-assigned this Nov 1, 2026
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 022c8f83-0bdf-47ef-a909-14b2db2ddd9d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rasuvaeff
rasuvaeff merged commit b73c383 into master Nov 1, 2026
11 checks passed
@rasuvaeff
rasuvaeff deleted the test/mutation-with-uncovered branch November 1, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant