From 496957a760a5d26134292507927b3c6a7bb8aa33 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 26 Dec 2023 18:25:27 -0300 Subject: [PATCH] fix: kover coverage dicreased --- .../routing/compose/ComposeResourcesTest.kt | 4 ++-- core/build.gradle.kts | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/compose/common/test/dev/programadorthi/routing/compose/ComposeResourcesTest.kt b/compose/common/test/dev/programadorthi/routing/compose/ComposeResourcesTest.kt index df6f8c5..cefa124 100644 --- a/compose/common/test/dev/programadorthi/routing/compose/ComposeResourcesTest.kt +++ b/compose/common/test/dev/programadorthi/routing/compose/ComposeResourcesTest.kt @@ -44,7 +44,7 @@ class ComposeResourcesTest { val routing = routing(parentCoroutineContext = coroutineContext) { install(Resources) - composable { + composable(method = RouteMethod.Empty) { result = call path = it fakeContent.content = "I'm the path based content" @@ -88,7 +88,7 @@ class ComposeResourcesTest { install(Resources) install(StackRouting) - composable { + composable(method = StackRouteMethod.Push) { result = call path = it fakeContent.content = "I'm the push based content" diff --git a/core/build.gradle.kts b/core/build.gradle.kts index aae5404..e220175 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -1,3 +1,5 @@ +import kotlinx.kover.gradle.plugin.dsl.KoverReportExtension + plugins { kotlin("multiplatform") id("org.jlleitschuh.gradle.ktlint") @@ -17,3 +19,15 @@ kotlin { } } } + +configure { + filters { + excludes { + packages( + "dev.programadorthi.routing.core.application", + "dev.programadorthi.routing.core.errors", + "dev.programadorthi.routing.core.logging", + ) + } + } +}