-
Notifications
You must be signed in to change notification settings - Fork 10
/
jacoco.gradle
32 lines (30 loc) · 863 Bytes
/
jacoco.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['com/qualitychecks/service/**'])
})) //excluding the service as it is integration test
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.95
}
}
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: ['com/qualitychecks/service/**'])
})) //excluding the service as it is integration test
}
}