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

JSON flag not being accepted as resultformat for code coverage #269

Open
randi274 opened this issue Dec 17, 2021 · 0 comments
Open

JSON flag not being accepted as resultformat for code coverage #269

randi274 opened this issue Dec 17, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@randi274
Copy link
Contributor

Summary

Running this command featured in our documentation results in an error:
sfdx force:apex:test:run -n "MyTestName" -c --json

Steps To Reproduce:

  1. Run this command: sfdx force:apex:test:run -n "MyTestName" -c --json, where MyTestName is the name of a valid test class.
  2. Get this error: Select a result format when specifying code coverage

Expected result

--json is enough information for the code coverage result format.

Actual result

I need to add the resultformat to get it to work: sfdx force:apex:test:run -n "MyTestName" -c --resultformat=json

Additional information

We should either allow the --json flag to work without the --resultformat=json, or remove that example.

Apex library Version:
0.7.0

@randi274 randi274 added the bug Something isn't working label Dec 17, 2021
@randi274 randi274 self-assigned this Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant