File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ class Test extends Command
1212
1313 protected $ signature = 'module:test {module}
1414 {--l|list : Get tests list}
15+ {--profile : Lists top 10 slowest tests}
16+ {--coverage : Indicates whether code coverage information should be collected}
17+ {--p|parallel : Indicates if the tests should run in parallel}
1518 {--s|stop-on-failure : Stop all tests on the failure status}
1619 {--f|filter= : Test name (example: UserTest)} ' ;
1720
@@ -28,8 +31,11 @@ protected function exec()
2831 } else {
2932 if ($ filter = $ this ->option ('filter ' )) $ command .= ' --filter= ' . $ filter ;
3033 if ($ this ->option ('stop-on-failure ' )) $ command .= ' --stop-on-failure ' ;
34+ if ($ this ->option ('coverage ' )) $ command .= ' --coverage ' ;
35+ if ($ this ->option ('profile ' )) $ command .= ' --profile ' ;
36+ if ($ this ->option ('parallel ' )) $ command .= ' --parallel ' ;
3137 }
32-
38+
3339 $ process = Process::fromShellCommandline ($ command );
3440 $ process ->setPty (true );
3541 $ process ->run ();
You can’t perform that action at this time.
0 commit comments