Skip to content

Commit

Permalink
Issue #2490: Fix the description of the option --test
Browse files Browse the repository at this point in the history
It was stated that scripts matching a pattern are run.
But actually the complete file name, and optionally parent, dirs must be given.
That the trailing '.t' can be passed is a new feature.
  • Loading branch information
bschmalhofer committed Aug 26, 2023
1 parent e6d7034 commit f52ddd0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Kernel/System/Console/Command/Dev/UnitTest/Run.pm
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ sub Configure {
);
$Self->AddOption(
Name => 'test',
Description => "Filter file list, allow to run test scripts matching a pattern, e.g. 'Ticket' or 'Ticket/ArchiveFlags' (can be specified several times).",
Required => 0,
HasValue => 1,
Multiple => 1,
ValueRegex => qr/.*/smx,
Description =>
"Run individual test files. The trailing '.t' is optional. E.g. 'Ticket' or 'Ticket.t'. Add parent dirs for disambiguation, e.g. 'GenericAgent/Run.t'. The option may be specified several times.",
Required => 0,
HasValue => 1,
Multiple => 1,
ValueRegex => qr/.*/smx,
);
$Self->AddOption(
Name => 'sopm',
Expand All @@ -72,7 +73,7 @@ sub Configure {
);
$Self->AddOption(
Name => 'verbose',
Description => 'Show details for all tests, not just failing.',
Description => 'Show details for all tests, not just for the failing tests.',
Required => 0,
HasValue => 0,
);
Expand Down

0 comments on commit f52ddd0

Please sign in to comment.