feat(forge test) option to list summary table only #9307
Labels
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-feature
Type: feature
T-to-discuss
Type: requires discussion
Component
Forge
Describe the feature you would like
Motivation: Many tests fail when migrating from OZ 4 to OZ 5, esp. when you have hundreds of tests. One needs to see and report on the volume to be fixed.
The
forge test --summary --detailed
gives a nice overview, but the table is burned within the rest of the output.I propose to have the flag
--summaryonly
, which would act similarly to--summary --detailed
, but would output only the table and the general statEncountered a total of xxx failing tests, zzz tests succeeded
Current workaround is:
forge test --summary --detailed | awk '/Test Summary:/,/----╯/'
But that loses coloring.
I assume there might be some other workaround, I welcome any comments on this.
Additional context
No response
The text was updated successfully, but these errors were encountered: