No coverage of all lines of code in project


I am using SonarCube version 9.3 developer edition build 51899 and we are having troubles with the total coverage of multiple projects. As you can see in the image, we have a project with different directories. SonarCube is only covering 1 directory. Deeper in the other directories, there are files and sonarcube shows them properly. We also do not have any exclusion rules on files active. How can we solve this problem? I could not find any similar problem on the forum.


Welcome to the community!

Usually when people use the word “coverage” they’re talking about tests, but you’re not. And I think that is actually the issue here.

It look like all those other directories are being taken as test code. You didn’t mention the language under analysis, but I’m going to guess it’s C#.

This may help.

:warning: Also, make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley: