Leow Kah Man
Leow Kah Man

Reputation: 445

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?

Upvotes: 4

Views: 8005

Answers (1)

G. Ann - SonarSource Team
G. Ann - SonarSource Team

Reputation: 22804

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

  • consideration altogether
  • issues
  • coverage
  • duplications

Upvotes: 3

Related Questions