Skip to content

Commit 458de67

Browse files
committed
Update DuskParallelCommand.php
1 parent 0e8b75e commit 458de67

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/Console/DuskParallelCommand.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@
44

55
use Laravel\Dusk\Console\DuskCommand;
66
use Symfony\Component\Console\Attribute\AsCommand;
7+
use Symfony\Component\Console\Input\InputOption;
78

89
#[AsCommand(name: 'dusk:parallel')]
910
class DuskParallelCommand extends DuskCommand
1011
{
11-
protected $signature = 'dusk:parallel
12-
{--processes=2 : Number of parallel processes to use}
13-
{--browse : Open a browser instead of using headless mode}
14-
{--without-tty : Disable output to TTY}';
15-
1612
protected $description = 'Run the Dusk tests in parallel';
1713

14+
protected function configure(): void
15+
{
16+
parent::configure();
17+
18+
$this->setName('dusk:parallel');
19+
$this->addOption('processes', null, InputOption::VALUE_REQUIRED, 'Number of parallel processes to use', 2);
20+
}
21+
1822
protected function binary()
1923
{
2024
$paratestPath = base_path('vendor/bin/paratest');

0 commit comments

Comments
 (0)