Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reformat human readable output for test results #377 #385

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

peternhale
Copy link
Collaborator

What does this PR do?
Adds a concise parameter to the HumanReporter format function. If false, then display all test results (current behavior). If true, only display failing tests. I have left the default value as false to preserve existing behavior, with the plan to add a --concise flag to the sf apex run test command to control this behavior.

I have also moved the summary section for test results to the bottom of the output. This makes it much easier to tell at a glance whether your tests ran successfully or not. Even with the removal of passing tests in the output, it can still be cumbersome to scroll through the results to see the summary.

I primarily have the sf cli in mind but I don't know if this is used anywhere else or if there are other considerations I'm unaware of.

What issues does this PR fix or reference?
forcedotcom/cli#2872
#243
Functionality Before
Before, the summary was at the top of the terminal output and it displayed the results of ALL test methods, which required users to scroll a lot.

Functionality After
Now, the summary is at the bottom and can optionally only display failing tests, making it easier to see when read by a human.
@W-16047075@

Thank you @k-capehart

force a release for new feature
@W-16047075@
@peternhale peternhale merged commit a5fa572 into main Jun 21, 2024
16 checks passed
@peternhale peternhale deleted the phale/force-release branch June 21, 2024 17:40
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.

2 participants