fix: adds --parallel option to help

This commit is contained in:
Nuno Maduro
2023-03-21 21:07:57 +00:00
parent 14dd5cb57b
commit f914f1ad87
2 changed files with 8 additions and 0 deletions

View File

@ -102,6 +102,13 @@ final class Help implements HandlesArguments
'desc' => 'Initialise a standard Pest configuration', 'desc' => 'Initialise a standard Pest configuration',
]], ...$content['Configuration']]; ]], ...$content['Configuration']];
$content['Execution'] = [...[
[
'arg' => '--parallel',
'desc' => 'Run tests in parallel',
],
], ...$content['Execution']];
$content['Selection'] = array_merge([ $content['Selection'] = array_merge([
[ [
'arg' => '--bail', 'arg' => '--bail',

View File

@ -33,6 +33,7 @@
--test-suffix [suffixes] Only search for test in files with specified suffix(es). Default: Test.php,.phpt --test-suffix [suffixes] Only search for test in files with specified suffix(es). Default: Test.php,.phpt
EXECUTION OPTIONS: EXECUTION OPTIONS:
--parallel ........................................... Run tests in parallel
--process-isolation ................ Run each test in a separate PHP process --process-isolation ................ Run each test in a separate PHP process
--globals-backup ................. Backup and restore $GLOBALS for each test --globals-backup ................. Backup and restore $GLOBALS for each test
--static-backup ......... Backup and restore static properties for each test --static-backup ......... Backup and restore static properties for each test