Skip to content

Commit 1a0219f

Browse files
author
maxonfjvipon
committed
ci: scope coverage to unit-testable code, gate at 100%
The platform glue (the LSP factory + connection provider) needs a running IDE and is covered by the Plugin Verifier, not unit tests. Exclude it from Kover so coverage reflects the unit-testable logic — now 100% — and enforce that with a koverVerify minBound(100) rule.
1 parent c18de48 commit 1a0219f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,26 @@ detekt {
6767

6868
kover {
6969
reports {
70+
filters {
71+
excludes {
72+
// Platform glue — instantiable only inside a running IDE, so
73+
// it's exercised by the Plugin Verifier, not by unit tests.
74+
classes(
75+
"com.xslint.jetbrains.XslintLanguageServerFactory",
76+
"com.xslint.jetbrains.XslintLanguageServer",
77+
)
78+
}
79+
}
7080
total {
7181
xml {
7282
onCheck = true
7383
}
7484
}
85+
verify {
86+
rule {
87+
minBound(100)
88+
}
89+
}
7590
}
7691
}
7792

0 commit comments

Comments
 (0)