Skip to content

Commit 7031f89

Browse files
committed
add jacoco configs
1 parent 1c9d53a commit 7031f89

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ buildscript {
1313
apply plugin: 'java'
1414
apply plugin: 'eclipse'
1515
apply plugin: 'org.springframework.boot'
16+
apply plugin: 'jacoco'
1617

1718
group = 'com.redknee'
1819
version = '0.0.1-SNAPSHOT'
@@ -33,3 +34,19 @@ dependencies {
3334

3435
testCompile('org.springframework.boot:spring-boot-starter-test')
3536
}
37+
38+
jacocoTestReport {
39+
40+
reports {
41+
xml.enabled true
42+
csv.enabled true
43+
html.destination "${buildDir}/jacoco-ut"
44+
}
45+
46+
afterEvaluate {
47+
classDirectories = files(classDirectories.files.collect {
48+
fileTree(dir: it,
49+
exclude: ['test/**', '/*Test*.class'])
50+
})
51+
}
52+
}

0 commit comments

Comments
 (0)