Skip to content

Commit 93372b7

Browse files
authored
Merge pull request #92 from 1c-syntax/feature/add-link-to-coverage
Jacoco report
2 parents 123f40a + f6e939e commit 93372b7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ tasks.test {
7171
}
7272
}
7373

74+
tasks.check {
75+
dependsOn(tasks.jacocoTestReport)
76+
}
77+
78+
tasks.jacocoTestReport {
79+
reports {
80+
xml.isEnabled = true
81+
xml.destination = File("$buildDir/reports/jacoco/test/jacoco.xml")
82+
}
83+
}
84+
7485
tasks.withType<JavaCompile> {
7586
options.encoding = "UTF-8"
7687
options.compilerArgs.add("-Xlint:unchecked")
@@ -85,6 +96,7 @@ sonarqube {
8596
property("sonar.projectKey", "1c-syntax_mdclasses")
8697
property("sonar.projectName", "MDClasses")
8798
property("sonar.exclusions", "**/gen/**/*.*")
99+
property("sonar.coverage.jacoco.xmlReportPaths", "$buildDir/reports/jacoco/test/jacoco.xml")
88100
}
89101
}
90102

0 commit comments

Comments
 (0)