diff --git a/src/Core/Commands/Test.php b/src/Core/Commands/Test.php index 8eb2165..a14abaa 100644 --- a/src/Core/Commands/Test.php +++ b/src/Core/Commands/Test.php @@ -12,6 +12,9 @@ class Test extends Command protected $signature = 'module:test {module} {--l|list : Get tests list} + {--profile : Lists top 10 slowest tests} + {--coverage : Indicates whether code coverage information should be collected} + {--p|parallel : Indicates if the tests should run in parallel} {--s|stop-on-failure : Stop all tests on the failure status} {--f|filter= : Test name (example: UserTest)}'; @@ -28,8 +31,11 @@ protected function exec() } else { if ($filter = $this->option('filter')) $command .= ' --filter=' . $filter; if ($this->option('stop-on-failure')) $command .= ' --stop-on-failure'; + if ($this->option('coverage')) $command .= ' --coverage'; + if ($this->option('profile')) $command .= ' --profile'; + if ($this->option('parallel')) $command .= ' --parallel'; } - + $process = Process::fromShellCommandline($command); $process->setPty(true); $process->run();