Unit test coverage fail when other information(duplications, code smell) is working fine

hi @Genco_Cosgun and welcome to this community forum!

could you please share the verbose output of the END step command (please run SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true as the BEGIN step, and please attach the output of END step)

  • I imagine for the DevOps integration you need to add the parameter sonar.verbose=true in the Prepare Analysis Configuration and give us the logs from the Run Code Analysis

Also, can you please share

  • what code coverage tool you are using?
  • are you providing the path to the code coverage report in the Prepare Analysis Configuration ?
  • between the Prepare Analysis Configuration and the Run Code Analysis , are you generating the code coverage report using your code coverage tool?

To better understand how the dotnet scan works, please read

The extension embeds its own version of the SonarScanner for MSBuild.