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

The new code coverage formats also for force:apex:test:* #294

Open
thvd opened this issue Jun 3, 2022 · 3 comments
Open

The new code coverage formats also for force:apex:test:* #294

thvd opened this issue Jun 3, 2022 · 3 comments
Labels
enhancement New feature or request type:feedback

Comments

@thvd
Copy link

thvd commented Jun 3, 2022

I think the new --coverageformatters option is a valuable addition to the SFDX cli. But it would be really nice to also add it to force:apex:test:*

For example:


sfdx force:apex:test:run --coverageformatters cobertura

This would be valuable to scratch org build deployments in pipelines. So you can forward the code coverage to your CI/CD system of choice.

@thvd thvd added the feature label Jun 3, 2022
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

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.

@WillieRuemmele WillieRuemmele transferred this issue from forcedotcom/cli Jun 6, 2022
@jeffb-sfdc
Copy link
Contributor

@AnanyaJha what are your thoughts on this?

@randi274 randi274 transferred this issue from forcedotcom/salesforcedx-vscode Jul 21, 2022
@randi274 randi274 added the enhancement New feature or request label Jul 21, 2022
@mcarvin8
Copy link

mcarvin8 commented Dec 18, 2024

@thvd I have a Salesforce CLI plugin that can convert the "json" coverage format available in the Salesforce CLI deploy and test run commands into a valid "cobertura" format. This cobertura format has been verified in GitLab merge requests that use cobertura reports to visualize code coverage.

See https://github.com/mcarvin8/apex-code-coverage-transformer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request type:feedback
Projects
None yet
Development

No branches or pull requests

5 participants