Skip to content

Commit

Permalink
Improve composer infection script clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Jul 8, 2023
1 parent d8b4ed8 commit a87624a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
"phpstan": "XDEBUG_MODE=off ./vendor/bin/phpstan analyze",
"csfix": "XDEBUG_MODE=off ./vendor/bin/php-cs-fixer fix",
"csrun": "XDEBUG_MODE=off ./vendor/bin/php-cs-fixer fix --dry-run",
"infection": "XDEBUG_MODE=coverage ./vendor/bin/infection --show-mutations --threads=max --min-msi=80 --min-covered-msi=80",
"infection": [
"XDEBUG_MODE=coverage ./vendor/bin/infection --show-mutations --threads=max --min-msi=75 --min-covered-msi=75",
"find tests -type f -name 'gacela-custom-services.php' -exec rm -rf {} \\;",
"find tests -type f -name 'gacela-class-names.php' -exec rm -rf {} \\;"
],
"phpbench": "XDEBUG_MODE=off ./vendor/bin/phpbench run --report=aggregate --ansi",
"phpbench-base": "XDEBUG_MODE=off ./vendor/bin/phpbench run --tag=baseline --report=aggregate --progress=plain --ansi",
"phpbench-ref": "XDEBUG_MODE=off ./vendor/bin/phpbench run --ref=baseline --report=aggregate --progress=plain --ansi",
Expand Down
7 changes: 6 additions & 1 deletion infection.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$schema: 'vendor/infection/infection/resources/schema.json',
logs: {
html: 'data/mutation-report.html',
text: 'data/mutation.log',
"stryker": {
"report": "main"
}
Expand All @@ -13,6 +14,10 @@
]
},
mutators: {
'@default': true
'@default': true,
"global-ignore": [
"GacelaTest\\Feature\\Console\\CodeGenerator\\*",
"*FileCache*",
]
}
}

0 comments on commit a87624a

Please sign in to comment.