Skip to content

chore: re-enable mutation testing - #1395

Merged
datamweb merged 1 commit into
codeigniter4:developfrom
paulbalandan:mutation-testing
Nov 9, 2026
Merged

datamweb merged 1 commit into
codeigniter4:developfrom
paulbalandan:mutation-testing

Conversation

@paulbalandan

@paulbalandan paulbalandan commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Description
When codeigniter4/devkit was introduced, infection was apparently removed but did not remove its configuration. This reintroduces mutation testing, adding a baseline MSI (72%) and covered MSI (79%) based on the current code.

  • infection.json.dist is renamed to infection.json5
  • a new workflow is added for mutation testing running at PHP 8.5 only
  • the mutation runs identified destructive tests, which causes UserModel.php to be deleted, and stray Config/ and vfs directories to be left at the repo root. those are fixed
  • PYRAMETER_DISABLED=1 is needed since Pyrameter's ->failOnViolation() causes to flip infection to treat its fail as killed

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@paulbalandan
paulbalandan force-pushed the mutation-testing branch 3 times, most recently from d256c3f to fd2ce2a Compare November 6, 2026 16:52
@paulbalandan
paulbalandan marked this pull request as draft November 6, 2026 17:48
@paulbalandan
paulbalandan marked this pull request as ready for review November 6, 2026 17:56

@datamweb datamweb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@datamweb
datamweb merged commit db208ad into codeigniter4:develop Nov 9, 2026
39 checks passed
@paulbalandan
paulbalandan deleted the mutation-testing branch November 9, 2026 08:34
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.

3 participants