Search code examples
c#sonarqube

Sonarqube exclude code coverage for tests but include in code smell and duplicate detection


If I specify <SonarQubeTestProject>true</SonarQubeTestProject> it will exclude the project from not just code coverage but also code smell and duplicate detection.

Is there a way to just exclude from code coverage but scan for every other aspects?


Solution

  • Take a look at Exclusions, which allow you to exclude files from

    • consideration altogether
    • issues
    • coverage
    • duplications