diff --git a/src/Pest.php b/src/Pest.php index 8595bd5f..1fb47c9f 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '4.4.4'; + return '4.6.0'; } function testDirectory(string $file = ''): string diff --git a/src/Plugins/Shard.php b/src/Plugins/Shard.php index 9575a906..814125f2 100644 --- a/src/Plugins/Shard.php +++ b/src/Plugins/Shard.php @@ -142,6 +142,10 @@ final class Shard implements AddsOutput, HandlesArguments, Terminable 'testsCount' => count($tests), ]; + if ($testsToRun === []) { + return $arguments; + } + return [...$arguments, '--filter', $this->buildFilterArgument($testsToRun)]; } diff --git a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap index 5a7f0c87..114b6890 100644 --- a/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Help/visual_snapshot_of_help_command_output.snap @@ -1,5 +1,5 @@ - Pest Testing Framework 4.4.4. + Pest Testing Framework 4.6.0. USAGE: pest [options] diff --git a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap index 988eec06..46269bb8 100644 --- a/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap +++ b/tests/.pest/snapshots/Visual/Version/visual_snapshot_of_help_command_output.snap @@ -1,3 +1,3 @@ - Pest Testing Framework 4.4.4. + Pest Testing Framework 4.6.0.