phpro / grumphp

A PHP code-quality tool
MIT License
4.15k stars 433 forks source link

Adds 'skip_initial_tests' and 'coverage' options support to infection… #1160

Closed jose-ba closed 2 days ago

jose-ba commented 1 week ago

Infection task.

Q A
Branch v2.x
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets none

This pull request adds the options 'skip_initial_tests' and 'coverage' to the Infection task.

So far, when the Infection task is run, all tests are run to check that they pass, also generating the necessary code coverage to detect the mutants. This is the default operation of infection, but it also has the options 'skip_initial_tests' and 'coverage' that allow to reuse the code coverage generated from PHPUnit, speeding up the Infeciton task.

veewee commented 2 days ago

Looks good, Thanks!