I’m using the latest version of SonarQube, in docker.
I have just analyzed a project, fixed a few issues, then analysed it again.
No issues. But it still FAILED. Why? Is that per design? I don’t get it…
There’s not a single problem that I can see… why would it fail??
Ah I see… thanks ! But that raises more questions:
Why is coverage 0? I see it is 0 for both my projects, both the class library and the console app that has just a main method that calls a method in the class library. Surely it would have some coverage?
Also… the console app passes the quality gate despite its 0% coverage…
(These are C# projects by the way)
If you open the project, it should tell you pretty explicitly which quality gate condition(s) failed!
And a small but important detail to add to Diana’s answer — the default quality gate will fail on some quality gate conditions (including coverage) related to New Code, not Overall code. More details on why here: https://docs.sonarqube.org/latest/user-guide/clean-as-you-code/