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

sfdx force:apex:test:report -c has no option to display code coverage without details #313

Open
RupertBarrow opened this issue Jan 10, 2023 · 2 comments
Labels

Comments

@RupertBarrow
Copy link

Is your feature request related to a problem? Please describe.

The force:apex:test:run -c -r human command provides the --detailedcoverage option to display code coverage detailed information, for each test in each class
The force:apex:test:report -c -r human always displays the detailed report which force:apex:test:run -c --detailedcoverage would display.

There is no option for force:apex:test:report -c to display the same results as those displayed by force:apex:test:run -c without the --detailedcoverage option

What are you trying to do
I'm trying to use the force:apex:test:report -c -r human command to display the code coverage summary information without all the code coverage detailed information (test by test).

Describe the solution you'd like
I would like a --detailedcoverage option for the force:apex:test:report -c command.

I would like the force:apex:test:report -c -r human to work like the force:apex:test:run -c -r human command :

  • display the same summary in the absence of the --detailedcoverage option
  • display the same details in the presence of the --detailedcoverage option

Describe alternatives you've considered
I have no alternative.
I cannot produce the human-readable summary by using the force:apex:test:runcommand, because I am producing this report later, after the tests have been run. That is why I have to use the force:apex:test:reportcommand.

Additional context

@github-actions
Copy link

Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments.

@git2gus
Copy link

git2gus bot commented Jan 10, 2023

This issue has been linked to a new work item: W-12352846

@cristiand391 cristiand391 transferred this issue from forcedotcom/cli Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant