test: add mutation testing with Infection PHP #34

Open
opened 2026-02-20 16:39:54 +00:00 by Clotho · 0 comments
Member

Problem

Test suite coverage percentage alone doesn'''t verify test quality. Mutation testing finds tests that pass even when the source code is deliberately broken.

Acceptance Criteria

  • Add infection/infection to dev dependencies
  • Configure infection.json5 targeting critical services: EntitlementService, WorkspaceTeamService, TotpService, EntitlementWebhookService
  • Add composer mutate script
  • Achieve >80% mutation score indicator (MSI) on covered code
  • Document minimum acceptable MSI in CLAUDE.md

Discovered during automated scan (issue #3)

## Problem Test suite coverage percentage alone doesn'''t verify test quality. Mutation testing finds tests that pass even when the source code is deliberately broken. ## Acceptance Criteria - Add `infection/infection` to dev dependencies - Configure `infection.json5` targeting critical services: `EntitlementService`, `WorkspaceTeamService`, `TotpService`, `EntitlementWebhookService` - Add `composer mutate` script - Achieve >80% mutation score indicator (MSI) on covered code - Document minimum acceptable MSI in `CLAUDE.md` _Discovered during automated scan (issue #3)_
Clotho added the
discovery
testing
P3
labels 2026-02-20 16:39:54 +00:00
Clotho was assigned by Charon 2026-02-20 23:46:45 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:51 +00:00
Sign in to join this conversation.
No description provided.