File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
4
4
*/
5
5
6
+ import kotlinx.kover.gradle.plugin.dsl.MetricType
6
7
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
7
8
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
8
9
9
10
plugins {
10
11
id(" kotlinx-io-publish" ) apply false
11
12
13
+ alias(libs.plugins.kover)
12
14
alias(libs.plugins.bcv)
13
15
alias(libs.plugins.dokka)
14
16
}
@@ -37,3 +39,19 @@ subprojects {
37
39
apiValidation {
38
40
ignoredProjects.add(" kotlinx-io-benchmarks" )
39
41
}
42
+
43
+ dependencies {
44
+ kover(project(" :kotlinx-io-core" ))
45
+ kover(project(" :kotlinx-io-bytestring" ))
46
+ }
47
+
48
+ koverReport {
49
+ verify {
50
+ rule {
51
+ minBound(95 , MetricType .LINE )
52
+
53
+ // we allow lower branch coverage, because not all checks in the internal code lead to errors
54
+ minBound(80 , MetricType .BRANCH )
55
+ }
56
+ }
57
+ }
Original file line number Diff line number Diff line change 2
2
kotlin = " 1.9.0"
3
3
java = " 8"
4
4
dokka = " 1.8.20"
5
- kover = " 0.7.1 "
5
+ kover = " 0.7.3 "
6
6
bcv = " 0.13.2"
7
7
benchmark = " 0.4.9"
8
8
jmh = " 1.36"
You can’t perform that action at this time.
0 commit comments