From 957dabc3f06897c1b9a0a2dee2f22ea8c3cf47c0 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 17 Feb 2023 21:36:13 +0000 Subject: [PATCH] feat: improves help table --- src/Plugins/Help.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/Plugins/Help.php b/src/Plugins/Help.php index 615dd7d2..ea8a08ea 100644 --- a/src/Plugins/Help.php +++ b/src/Plugins/Help.php @@ -90,7 +90,6 @@ final class Help implements HandlesArguments */ private function getContent(): array { - // Access the PHPUnit help class's private const HELP $helpReflection = new \ReflectionClass(PHPUnitHelp::class); /** @var array> $content */ @@ -101,6 +100,17 @@ final class Help implements HandlesArguments 'desc' => 'Initialise a standard Pest configuration', ]] + $content['Configuration']; + $content['Selection'] = [ + [ + 'arg' => '--todos', + 'desc' => 'Output to standard output the list of todos', + ], + [ + 'arg' => '--retry', + 'desc' => 'Run non-passing tests first and stop execution upon first error or failure', + ], + ] + $content['Selection']; + $content['Code Coverage'] = [ [ 'arg' => '--coverage ', @@ -112,6 +122,15 @@ final class Help implements HandlesArguments ], ] + $content['Code Coverage']; + $content['Profiling'] = [ + [ + 'arg' => '--profile ', + 'desc' => 'Output to standard output the top ten slowest tests', + ], + ]; + + unset($content['Miscellaneous']); + return $content; } }