on the screenshot that you provide, I see that you are drilling down into the “coverage on new code” metric. This means that you are looking at code which was recently modified only (last 30 days by default on SonarCloud). This might be why you see only a portion of your code base.

Just a question, for example, if I have total 10 test cases and out of them 8 passed and 2 failed, and this is integrated in vsTest Assemblies task in VSTS, so will I get the coverage of passed tests in SonarQube or SonarCloud?

Just to clarify, are you on SonarQube or SonarCloud? The screenshots you provided tend to indicate that you are on SonarQube. In which case it’s important that you specify which version of SonarQube and the SonarQube extension for TFS you are using.

Hi Fabrice, So we are currently using sonarcloud and doing a poc on soanrqube enterprise 7 version as we are facing some random analysis issues on Cloud.
for the same project (catalog) mentioned above we are facing an issue intermittently both on Cloud and Qube.

Analysis throws an error saying “Failed to find input file”. Although the same files are present in the source code on GitHub. can you please suggest what can be done here.
Whenever this error occurs, code coverage also goes down.