mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
feat: improves help table
This commit is contained in:
@ -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<string, array<int, array{arg: string, desc: string}>> $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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user