-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjacoco.gradle
54 lines (46 loc) · 1.01 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
apply plugin: "jacoco"
test {
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.95
}
}
rule {
enabled = false
element = 'CLASS'
includes = ['org.gradle.*']
limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 0.95
}
}
}
}
test.jacoco.enabled = true
test {
jacoco {
enabled = true
includes = [
"ru/vorobeij/**/*.kt",
"ru.vorobeij.*"
]
excludes = [
"**/data/*"
]
}
}