Merge pull request #1511 from acelaya-forks/feature/only-changed-mutants

Ensured only mutants for changed lines are executed in CI mutation tests
This commit is contained in:
Alejandro Celaya 2022-08-13 12:34:52 +02:00 committed by GitHub
commit 555007ab16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -25,8 +25,8 @@ jobs:
with:
path: build
- if: ${{ inputs.test-group == 'unit' }}
run: composer infect:ci:unit
run: composer infect:ci:unit -- --git-diff-lines --logger-github=false
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
- if: ${{ inputs.test-group != 'unit' }}
run: composer infect:ci:${{ inputs.test-group }}
run: composer infect:ci:${{ inputs.test-group }} -- --git-diff-lines --logger-github=false

View File

@ -125,7 +125,7 @@
"test:cli": "APP_ENV=test DB_DRIVER=maria TEST_ENV=cli php vendor/bin/phpunit --order-by=random --colors=always --testdox -c phpunit-cli.xml --log-junit=build/coverage-cli/junit.xml",
"test:cli:ci": "GENERATE_COVERAGE=yes composer test:cli",
"test:cli:pretty": "GENERATE_COVERAGE=pretty composer test:cli",
"infect:ci:base": "infection --threads=4 --log-verbosity=default --only-covered --only-covering-test-cases --skip-initial-tests",
"infect:ci:base": "infection --threads=4 --only-covered --only-covering-test-cases --skip-initial-tests",
"infect:ci:unit": "@infect:ci:base --coverage=build/coverage-unit --min-msi=84",
"infect:ci:db": "@infect:ci:base --coverage=build/coverage-db --min-msi=95 --configuration=infection-db.json",
"infect:ci:api": "@infect:ci:base --coverage=build/coverage-api --min-msi=80 --configuration=infection-api.json",