Sonar scan runs show Passed even if no Coverage

  • ALM used - Azure DevOps

  • CI system used - Azure DevOps

  • Languages of the repository - C#

  • org name - elearningforce
    project id - lms365 SonarCloud
    analysis id - AY4dHaeLITiQwH7mrxJW

  • Steps to reproduce

  1. add new code with logic and if branches to main branch
  2. create PR, validation pipeline run tests with coverage and sonar analyzer, all the files are attached and send to Sonar
  3. sonar scan shows that no coverage condition set but quality gate set this condition
    If I download code coverage report from AzureDevops I see that this code has no coverage for this lines - 0% but Sonarcloud by some reason cannot detect that.
  • Potential workaround
    No workaround

Hey there.

Can you provide a screenshot of what you’re seeing on SonarCloud?