-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
54 lines (47 loc) · 1.68 KB
/
build.gradle.kts
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
plugins {
id("org.jetbrains.kotlinx.kover")
}
// disable for root project
kover {
isDisabled.set(true)
engine.set(kotlinx.kover.api.DefaultIntellijEngine)
}
koverMerged {
enable()
filters {
projects {
excludes += listOf(
":spring-batch-plus-sample:spring-batch-plus-kotlin-dsl",
":spring-batch-plus-sample:spring-batch-plus-single-class-reader-processor-writer",
":spring-batch-plus-sample:spring-batch-plus-single-class-reader-processor-writer-kotlin",
":spring-batch-plus-sample:spring-batch-plus-clear-run-id-incrementer",
":spring-batch-plus-sample:spring-batch-plus-clear-run-id-incrementer-kotlin",
":spring-batch-plus-sample:spring-batch-plus-delete-meta-data-job",
":spring-batch-plus-sample:spring-batch-plus-delete-meta-data-job-kotlin"
)
}
}
xmlReport {
onCheck.set(true)
reportFile.set(layout.buildDirectory.file("kover/result.xml"))
}
htmlReport {
onCheck.set(true)
reportDir.set(layout.buildDirectory.dir("kover/html"))
}
verify {
onCheck.set(true)
rule {
isEnabled = true
name = "Test Coverage Rule"
target =
kotlinx.kover.api.VerificationTarget.ALL // specify by which entity the code for separate coverage evaluation will be grouped
bound {
minValue = 90
maxValue = 100
counter = kotlinx.kover.api.CounterType.INSTRUCTION
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
}
}
}
}