Skip to content

Commit 11d7ac0

Browse files
Enable jvmLincheckTest Gradle task back (#3703)
This commit fixes the buildscript part that disabled Kover for jvmLincheckTest Gradle task. Previous implementation of this part disabled jvmLincheckTest altogether because `enabled` property that was being set to false actually belonged to DefaultTask class (inherited by jvmLincheckTest) instead of Kover API.
1 parent 0b0426f commit 11d7ac0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

kotlinx-coroutines-core/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,6 @@ static void configureJvmForLincheck(task, additional = false) {
312312
task moreTest(dependsOn: [jvmStressTest, jvmLincheckTest, jvmLincheckTestAdditional])
313313
check.dependsOn moreTest
314314

315-
tasks.jvmLincheckTest {
316-
kover {
317-
enabled = false // Always disabled, lincheck doesn't really support coverage
318-
}
319-
}
320-
321315
def commonKoverExcludes =
322316
["kotlinx.coroutines.debug.*", // Tested by debug module
323317
"kotlinx.coroutines.channels.ChannelsKt__DeprecatedKt.*", // Deprecated
@@ -326,6 +320,9 @@ def commonKoverExcludes =
326320
]
327321

328322
kover {
323+
instrumentation {
324+
excludeTasks.add("jvmLincheckTest") // Always disabled, lincheck doesn't really support coverage
325+
}
329326
filters {
330327
classes {
331328
excludes.addAll(commonKoverExcludes)

0 commit comments

Comments
 (0)