Skip to content

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

@RupertBarrow

Description

@RupertBarrow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions