Skip to content

Commit 9496aba

Browse files
committed
Add code coverage to build
1 parent 59c4ef2 commit 9496aba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apply plugin: 'checkstyle'
22
apply plugin: 'java'
3+
apply plugin: 'jacoco'
34

45
sourceCompatibility = 1.7
56

@@ -38,6 +39,11 @@ tasks.withType(Test) {
3839
exceptionFormat = 'full'
3940
testLogging.showStandardStreams = true
4041
}
42+
43+
jacoco {
44+
append = true
45+
destinationFile = file("$buildDir/jacoco/test.exec")
46+
}
4147
}
4248

4349
test {

0 commit comments

Comments
 (0)