Merge pull request #1626 from SimonBroekaert/feat/add_only-covered_option

feat: add '--only-covered' option to '--coverage'
This commit is contained in:
nuno maduro
2026-04-10 12:53:17 +01:00
committed by GitHub
3 changed files with 25 additions and 3 deletions

View File

@ -167,6 +167,12 @@ final readonly class Help implements HandlesArguments
], [
'arg' => '--coverage --min',
'desc' => 'Set the minimum required coverage percentage, and fail if not met',
], [
'arg' => '--coverage --exactly',
'desc' => 'Set the exact required coverage percentage, and fail if not met',
], [
'arg' => '--coverage --only-covered',
'desc' => 'Hide files with 0% coverage from the code coverage report',
], ...$content['Code Coverage']];
$content['Mutation Testing'] = [[