From 44630308e3bce25435423f9c0292a6e15e740722 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 12 Aug 2021 14:53:04 +0100 Subject: [PATCH] Adds `-p` shortcut for running tests in parallel --- src/Adapters/Laravel/Commands/TestCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Adapters/Laravel/Commands/TestCommand.php b/src/Adapters/Laravel/Commands/TestCommand.php index 383deeca..668f72b3 100644 --- a/src/Adapters/Laravel/Commands/TestCommand.php +++ b/src/Adapters/Laravel/Commands/TestCommand.php @@ -29,7 +29,7 @@ class TestCommand extends Command */ protected $signature = 'test {--without-tty : Disable output to TTY} - {--parallel : Indicates if the tests should run in parallel} + {--p|parallel : Indicates if the tests should run in parallel} {--recreate-databases : Indicates if the test databases should be re-created} '; @@ -172,6 +172,7 @@ protected function paratestArguments($options) { $options = array_values(array_filter($options, function ($option) { return !Str::startsWith($option, '--env=') + && !Str::startsWith($option, '-p') && !Str::startsWith($option, '--parallel') && !Str::startsWith($option, '--recreate-databases'); }));