Sonarqube linew of code on test folder not showing

Hi Team,
We are using sSonarqube CE version 9.9.1
While browsing one of the analysis reports came across that the test folder in the code section doesn’t show the Lines of code (count) as indicated in the attached image

Is there any way we can enable this ?


Hi Azeem,

Welcome to the community!

Lines of Code shows up blank for your tests directory because we don’t calculate Lines of Code in test files. It would be “Lines of Tests”, but we don’t calculate that either.

Could you share why you’re interested in this metric?