Skip to content

Fix --compact CLI flag not activating compact output#1652

Open
isaackaara wants to merge 1 commit intopestphp:5.xfrom
isaackaara:fix/compact-cli-flag
Open

Fix --compact CLI flag not activating compact output#1652
isaackaara wants to merge 1 commit intopestphp:5.xfrom
isaackaara:fix/compact-cli-flag

Conversation

@isaackaara
Copy link
Copy Markdown

Fixes #1632

The --compact flag is listed in the help output but was never actually handled by any plugin. Running pest --compact had no effect on the output format — tests still displayed in the default verbose style.

This adds handling in the Printer plugin to call DefaultPrinter::compact(true) when --compact is passed as a CLI argument, which is the same thing pest()->printer()->compact() does in Pest.php config.

The --compact flag was listed in the help output but never actually
handled by any plugin. This adds handling in the Printer plugin to
call DefaultPrinter::compact(true) when --compact is passed, matching
the behavior of pest()->printer()->compact().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant