Why i am getting Quality Gate Failed in sonarqube

I have resolved all Bugs but why I am getting the Quality Gate Failed please the below screenshot.
Screenshot 2020-04-02 at 9.53.35 PM

Hi,

Welcome to the community!

What’s unclear to you about the information in the screenshot?

 
Ann

Hello,
In sonarQube I have resolved all issue but in Quality grate why i am getting failed

Thanks,
Suman

Hi Suman,

It’s telling you that your unit test coverage on the code that was added or changed in the New Code period is at 0% when it should be at 80% or higher.

 
Ann

Hi Ann,
yes, please check the below screenshot, I have resolved all bugs. why I am getting quality grade Failed

Hi,

it seems your Sonarqube project is using the default quality gate Sonarqube ships with,
named ‘Sonar way’ see ../quality_gates and project/Administration/ Quality Gate

This quality gate demands at least 80% coverage on new code.

This means you either need to create your own quality gate without code coverage condition
or you need to fix the coverage configuration of your analysis if there is coverage, but it doesn’t
show up in Sonarqube.

Gilbert

2 Likes

Hello Gilbert,
Thanks for reply, I have to find the solution.
Thanks,
Suman.