File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -61,3 +61,6 @@ atlassian-ide-plugin.xml
61
61
62
62
* .gpg
63
63
secring *
64
+
65
+ # coverage output
66
+ tmp /coverage
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ plugins {
11
11
id ' java-library'
12
12
id ' maven-publish'
13
13
id ' signing'
14
+ id ' jacoco'
14
15
id ' io.codearte.nexus-staging' version ' 0.30.0'
15
16
id " com.diffplug.spotless" version " 6.5.2"
16
17
}
@@ -24,6 +25,11 @@ java {
24
25
targetCompatibility = JavaVersion . VERSION_1_8
25
26
}
26
27
28
+ jacoco {
29
+ toolVersion = " 0.8.8"
30
+ reportsDir = file(" $projectDir /tmp/coverage" )
31
+ }
32
+
27
33
repositories {
28
34
mavenCentral() // Required for Lombok dependency
29
35
jcenter()
@@ -78,6 +84,7 @@ task buildJar(type: Jar) {
78
84
}
79
85
80
86
test {
87
+ finalizedBy jacocoTestReport
81
88
useJUnitPlatform {
82
89
excludeTags(' integration' )
83
90
}
@@ -86,6 +93,10 @@ test {
86
93
}
87
94
}
88
95
96
+ jacocoTestReport {
97
+ dependsOn test
98
+ }
99
+
89
100
task integrationTest (type : Test ) {
90
101
useJUnitPlatform {
91
102
includeTags(' integration' )
You can’t perform that action at this time.
0 commit comments