diff --git a/src/MutationTest.php b/src/MutationTest.php index 5a0ab0c..2ac6a89 100644 --- a/src/MutationTest.php +++ b/src/MutationTest.php @@ -81,10 +81,13 @@ public function start(array $coveredLines, Configuration $configuration, array $ $envs['LARAVEL_PARALLEL_TESTING'] = 1; } + // remove coverage arguments from the original arguments + $filteredArguments = array_filter($originalArguments, fn (string $argument): bool => ! str_starts_with($argument, '--coverage')); + // TODO: filter arguments to remove unnecessary stuff (Teamcity, Coverage, etc.) $process = new Process( command: [ - ...$originalArguments, + ...$filteredArguments, '--bail', '--filter="'.implode('|', $filters).'"', ],