How to exclude unit test code and Unit Tests number should not null for maven project

i have a maven project using maven-scanner plugin to analysis, on dashboard the result issue contain unit test file ,

than i use sonar.test.exclusions parameter to exclude but the result "Coverage Measures Unit Test case number is null .

i want the result Issue contain unit test file and Unit Test case number not null


This looks like an analysis configuration issue. Which scanner are you using, and if you have any manual analysis configuration, can you share it?