• fly2nadeem Demo
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi All,

Required guidance for publishing code coverage report in Azure DevOps Pipeline as it support only ''JaCoCo'' or ''Cobertura'' file format and we are using sfdx force:apex which generate coverage report in JSON or JUNIT format only.


Useful links which I have refered :

Apex Command Line
https://developer.salesforce.com/blogs/2021/04/clearer-apex-commands

Azure DevOps Publish Code Coverage report
https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results?view=azure-devops

Salesforce Post which refered
https://dfc-org-production.force.com/forums/ForumsMain?id=9062I000000DLpTQAW
 
I need to publish code coverage to Azure DevOps build pipeline. It needs ot be in Cobertura or JaCoCo format. Are there any tools I could use to convert current format into somehting that AzureDO can process?

I execute this command to generate code coverage:

sfdx force:apex:test:run --wait 10 --resultformat junit --codecoverage

test results are viewable in the pipeline, but not coverage...