Quality gate failed conditional coverage, no conditions to cover

Template for a good new topic, formatted with Markdown:

  • ALM used → Github
  • CI system used → Circle CI
  • Scanner command used when applicable
  • Languages of the repository → Java/Kotlin
  • Only if the SonarCloud project is public, the URL
    • And if you need help with pull request decoration, then the URL to the PR too
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
  • Steps to reproduce
  • Potential workaround

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

My quality gate requires >= 80% conditional coverage on new code. I had a PR fail this quality gate because it had 0% conditional coverage…but there were also 0 conditions, which is also evident in the coverage report. What is the recommendation here?

Hey there.

Do you mind sharing a screenshot of what you’re seeing? Namely the Quality Gate configuration and the failing QG on your project dashboard.