Sonar Community
Is it possible to scan source but ignore test coverage when a subproject has no tests?
SonarQube Server / Community Build
Jaff
(Mark Jaffe)
July 2, 2020, 5:15pm
1
SonarQube 8.3.1 DE, Gradle Plugin 2.8
Scan multi-module project in java; some sub-projects are missing tests
Setting property sonar.tests = “” in sub-project causes failure of entire scan
Setting skipProject = true works, but disables java analysis
ganncamp
(G Ann Campbell)
July 2, 2020, 7:28pm
2
Hi,
You’re looking for
coverage exclusions
.
Ann
Related topics
Topic
Replies
Views
Activity
Sonar.exclusion
SonarQube Server / Community Build
java
,
sonarqube
,
gradle
5
7182
December 6, 2021
Sonar is not excluding test files from analysis
SonarQube Server / Community Build
go
,
sonarqube
,
coverage
,
tests
3
160
September 10, 2024
Exclusions issues
SonarQube Cloud
scanner
,
sonarqube-cloud
8
1219
May 17, 2023
Excluding sub directory packages from SonarQube Scans
SonarQube Cloud
sonarqube
,
coverage
,
userfriendly-pl
,
sonarqube-ide
1
290
March 18, 2025
SonarLint does not respect "skipProject = true"
IntelliJ Platform
gradle
,
intellij
,
sonarqube-ide
5
932
January 21, 2020