Does SonarQube 7.9 reports Salesforce Apex Test Failures

  • SonarQube server 7.9.1, SonarQube Scanner 3.0.3.778
  • Report Salesforce Apex Test Failures
  • Tried using this Sonar parameter sonar.junit.reportPaths

Hi,

Welcome to the community!

According to the docs the recognized parameter for Apex is sonar.apex.coverage.reportPath. The value is

Path to the test-result-codecoverage.json report file generated by the apex:test:run command of the Salesforce CLI.

 
HTH,
Ann

Thanks Ann!

That parameter just gives the code coverage of classes but not test failures like (Passed, Failed & skipped).

Ah! Yes of course! There’s no specific property for that. If you have such a report, you can convert it to the generic format and get it imported that way.

 
HTH,
Ann