Coverage file is skipped as it is a test file

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): Community
  • how is SonarQube deployed: window local
  • what are you trying to achieve: Analyze Unity C# source
  • what have you tried so far to achieve this: looked into internet to find way resolve issue

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

19:18:35.189 DEBUG: Analyzing coverage after aggregate found '151' coverage files.
19:18:35.189 DEBUG: Skipping 'xxxx\SuspendRegistrationDomainService.cs' as it is a test file.
19:18:35.189 DEBUG: Skipping 'yyyy\CancelTransactionDomainServiceTests2.cs' as it is a test file.
19:18:35.189 DEBUG: Skipping 'xxxx\MmSetDiscountDomainService.cs' as it is a test file.
19:18:35.189 DEBUG: Skipping 'xxxx\BarcodeAuthenticationApplicationService.cs' as it is a test file.
19:18:35.189 DEBUG: Skipping 'xxxx\CancelTransactionApplicationService.cs' as it is a test file.

Ask: Why all coverge file is skipped as it is a test file althought it not a test file?
Setting:

  • sonar.sources=xxxx
  • sonar.tests=yyyy

Hi,

Welcome to the community!

For C#, the specification of sonar.sources and sonar.tests isn’t something that’s really relevant. We piggy-back / eavesdrop on your build to understand those things. If you need to change what’s detected as a test, this wiki should help.

 
Ann

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.