Skip to content

Commit d9b32b6

Browse files
committed
Filter out coverage-related arguments from the original test process arguments
1 parent 93de1b2 commit d9b32b6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MutationTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,13 @@ public function start(array $coveredLines, Configuration $configuration, array $
8181
$envs['LARAVEL_PARALLEL_TESTING'] = 1;
8282
}
8383

84+
// remove coverage arguments from the original arguments
85+
$filteredArguments = array_filter($originalArguments, fn (string $argument): bool => ! str_starts_with($argument, '--coverage'));
86+
8487
// TODO: filter arguments to remove unnecessary stuff (Teamcity, Coverage, etc.)
8588
$process = new Process(
8689
command: [
87-
...$originalArguments,
90+
...$filteredArguments,
8891
'--bail',
8992
'--filter="'.implode('|', $filters).'"',
9093
],

0 commit comments

Comments
 (0)