Add --only-covering-test-cases option to Infection test

Execute only those test cases that cover mutated line, not the whole
file with covering test cases.

[ci skip]

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-07-01 14:38:56 -03:00
parent 7d10e2f87d
commit d53daaa752
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -77,4 +77,4 @@ jobs:
if: github.event_name == 'schedule'
env:
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
run: infection -j$(nproc) --skip-initial-tests --coverage=build/logs --no-interaction --no-progress
run: infection -j$(nproc) --skip-initial-tests --coverage=build/logs --no-interaction --no-progress --only-covering-test-cases