0

We are working on SonarQube code coverage, We are using Salesforce CLI for generating the code coverage result and we are importing that result in the SonarQube.

We see that there is a difference in Result that we see on Salesforce UI and JSON file

Salesforce UI shows 85% SonarQube shows 55%

We followed the Link https://help.salesforce.com/articleView?id=000335222&type=1&mode=1 and cleared the history but still, we are facing the issue.

please suggest if anyone came across the same issue

  • Is there a difference in whether tests are run sequentially or in parallel between the two? Parallel execution of tests can cause a race condition on code coverage detail capture, losing some information along the way. – Phil W Jun 12 at 10:17
  • Hi, @PhilW Thank you for your response. The tests are not running parallelly, We have Disabled the parallel execution. – Spande Jun 12 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.