Skip to content

Commit

Permalink
Adds -p shortcut for running tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Aug 12, 2021
1 parent b2952e3 commit 4463030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Adapters/Laravel/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
';

Expand Down Expand Up @@ -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');
}));
Expand Down

0 comments on commit 4463030

Please sign in to comment.