Skip to content

Commit 8d12751

Browse files
claudedeviantintegral
authored andcommitted
ci: add mutation test pre-commit hook
Add infection mutation testing as the last pre-commit hook to ensure code changes maintain 100% mutation score coverage.
1 parent 34f78fa commit 8d12751

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ repos:
4141
language: system
4242
types: [php]
4343
pass_filenames: false
44+
- id: infection
45+
name: Mutation Tests
46+
entry: php infection.phar --min-msi=100 --min-covered-msi=100
47+
language: system
48+
types: [php]
49+
pass_filenames: false

0 commit comments

Comments
 (0)