Skip to content

Commit 4057b43

Browse files
Explore code coverage with jacoco plugin (#29)
1 parent b800b6b commit 4057b43

11 files changed

Lines changed: 828 additions & 97 deletions

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import internal.getBooleanProperty
33

44
plugins {
55
id("internal.errorprone-convention")
6+
id("internal.jacoco-convention")
67
id("internal.java-library-convention")
78
id("internal.mrjar-module-info-convention")
89
id("internal.publishing-convention")
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
id("jacoco")
3+
}
4+
5+
tasks.named<JacocoReport>("jacocoTestReport") {
6+
dependsOn(tasks.named("test"))
7+
8+
reports {
9+
xml.required = true
10+
html.required = true
11+
csv.required = false
12+
}
13+
}
14+
15+
tasks.named<Task>("check") {
16+
finalizedBy(tasks.named("jacocoTestReport"))
17+
}

0 commit comments

Comments
 (0)