@@ -272,31 +272,31 @@ val check by tasks.getting {
272272}
273273
274274kover {
275- excludeTests {
276- // Always disabled, lincheck doesn't really support coverage
277- tasks( " jvmLincheckTest " )
278- }
275+ currentProject {
276+ instrumentation {
277+ // Always disabled, lincheck doesn't really support coverage
278+ disabledForTestTasks.addAll( " jvmLincheckTest " )
279279
280- excludeInstrumentation {
281- // lincheck has NPE error on `ManagedStrategyStateHolder` class
282- classes( " org.jetbrains.kotlinx.lincheck.* " )
280+ // lincheck has NPE error on `ManagedStrategyStateHolder` class
281+ excludedClasses.addAll( " org.jetbrains.kotlinx.lincheck.* " )
282+ }
283283 }
284- }
285284
286- koverReport {
287- filters {
288- excludes {
289- classes(
290- " kotlinx.coroutines.debug.*" , // Tested by debug module
291- " kotlinx.coroutines.channels.ChannelsKt__DeprecatedKt*" , // Deprecated
292- " kotlinx.coroutines.scheduling.LimitingDispatcher" , // Deprecated
293- " kotlinx.coroutines.scheduling.ExperimentalCoroutineDispatcher" , // Deprecated
294- " kotlinx.coroutines.flow.FlowKt__MigrationKt*" , // Migrations
295- " kotlinx.coroutines.flow.LintKt*" , // Migrations
296- " kotlinx.coroutines.internal.WeakMapCtorCache" , // Fallback implementation that we never test
297- " _COROUTINE._CREATION" , // For IDE navigation
298- " _COROUTINE._BOUNDARY" , // For IDE navigation
299- )
285+ reports {
286+ filters {
287+ excludes {
288+ classes(
289+ " kotlinx.coroutines.debug.*" , // Tested by debug module
290+ " kotlinx.coroutines.channels.ChannelsKt__DeprecatedKt*" , // Deprecated
291+ " kotlinx.coroutines.scheduling.LimitingDispatcher" , // Deprecated
292+ " kotlinx.coroutines.scheduling.ExperimentalCoroutineDispatcher" , // Deprecated
293+ " kotlinx.coroutines.flow.FlowKt__MigrationKt*" , // Migrations
294+ " kotlinx.coroutines.flow.LintKt*" , // Migrations
295+ " kotlinx.coroutines.internal.WeakMapCtorCache" , // Fallback implementation that we never test
296+ " _COROUTINE._CREATION" , // For IDE navigation
297+ " _COROUTINE._BOUNDARY" , // For IDE navigation
298+ )
299+ }
300300 }
301301 }
302302}
0 commit comments