Coverage also measures the coverage of my tests

Version 6.7.5 (build 38563)

I want to configure SonarQube to calculate the correct test coverage of my Java project.
Currently I observe, that SonarQube also counts the coverage of tests, and tests have zero coverage.
This lowers the coverage value approximately by factor 2 and therefore below the threshold.

What can I configure to fix it?
Must the tests have certain names/suffixes?

On Stack Overflow I got no answers.

Thanks in advance,

Hi Ralf,

Welcome to the community!

It sounds like you’re including your test files in your sonar.sources value. Remove them from there (or exclude them if necessary) and set them up instead as sonar.tests.