Replies: 7 comments
-
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Beta Was this translation helpful? Give feedback.
-
Hello @fedegiust 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
Beta Was this translation helpful? Give feedback.
-
In this case it happens across all versions
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hey @fedegiust, thanks for sharing this! I am going to convert this into a Github Discussion since it is more of a feature request than a bug report. We have a few other things outline for a plugin-apex revamp that we will hopefully get prioritized for next year. In the meantime as a work-around, you could use the |
Beta Was this translation helpful? Give feedback.
-
Hello @fedegiust 👋 None of the versions of Shared: Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue. After updating, share the full output of |
Beta Was this translation helpful? Give feedback.
-
Something to add to this as well. The coverage reports for deploy and test commands follow different result formats. If you provide the same result format for both commands (JSON for example), you'll see different coverage report formatting for both commands. Something I'm accounting for with my sonar plugin - https://github.com/mcarvin8/apex-code-coverage-transformer If the coverage reports could be standardized between both commands, that would be nice. |
Beta Was this translation helpful? Give feedback.
-
Summary
There is an inconsistency for running tests between deployment and running them directly.
When running a deployment there is an option for code coverage formatters which give a number of options, which is great! I like the html format.
But when running apex run test the options are limited
Steps To Reproduce
sf apex run test --test-level RunLocalTests --output-dir temp --synchronous --result-format html --code-coverage
Beta Was this translation helpful? Give feedback.
All reactions