Skip to content

Commit

Permalink
Adjust Inflection to run only on covered files
Browse files Browse the repository at this point in the history
  • Loading branch information
stloyd committed May 10, 2024
1 parent f05c051 commit f9af151
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-mutations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ jobs:
run: "composer install --no-interaction --no-progress --no-suggest"

- name: "Mutation Tests"
run: "composer test:mutation -- --logger-github=false"
run: |
git fetch origin $GITHUB_BASE_REF
composer test:mutation -- --logger-github=false --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --only-covered
12 changes: 12 additions & 0 deletions inflection.json5.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"testFrameworkOptions": "--testsuite=unit",
"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true,
}
}

0 comments on commit f9af151

Please sign in to comment.