Should test classes under src/test/java folder considered as new lines count, in SonarQube?

I’m seeing in count of new lines increased whenever we add tests against code.


Welcome to the community!

Tests shouldn’t be counted as lines of code. It sounds like your test files are included in your project’s sonar.sources definition and not in its sonar.tests definition.