pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: Pest option --list-groups

Open aon4o opened this issue 1 year ago • 0 comments

What Happened

When using pest in my Laravel project I found out that the --help option doesn't list all available options.

That's the output I get:

❯ sail test --help
Description:
  Run the application tests

Usage:
  test [options]

Options:
      --without-tty         Disable output to TTY
      --compact             Indicates whether the compact printer should be used
      --coverage            Indicates whether code coverage information should be collected
      --min[=MIN]           Indicates the minimum threshold enforcement for code coverage
  -p, --parallel            Indicates if the tests should run in parallel
      --profile             Lists top 10 slowest tests
      --recreate-databases  Indicates if the test databases should be re-created
      --drop-databases      Indicates if the test databases should be dropped
      --without-databases   Indicates if database configuration should be performed
  -h, --help                Display help for the given command. When no command is given display help for the list command
  -q, --quiet               Do not output any message
  -V, --version             Display this application version
      --ansi|--no-ansi      Force (or disable --no-ansi) ANSI output
  -n, --no-interaction      Do not ask any interactive question
      --env[=ENV]           The environment the command should run under
  -v|vv|vvv, --verbose      Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

I have many tests which I like to group. The project is large so I have many groups. This means I can't memorize all group names. Luckily there is an option --list-groups which does just that.

❯ sail test --list-groups

   INFO  Available test group(s):

 - api
 - api_admin
 - arch
 - architecture
 - auth

...

The problem is that option isn't shown in the output of the --help option.

How to Reproduce

You need a fresh Laravel installation with Pest and some test groups defined.

Sample Repository

No response

Pest Version

2.34.8

PHP Version

8.3.9

Operation System

Linux

Notes

No response

aon4o avatar Jul 10 '24 11:07 aon4o