Skip to content

Commit

Permalink
fix: kover coverage dicreased
Browse files Browse the repository at this point in the history
  • Loading branch information
programadorthi committed Dec 26, 2023
1 parent 762a4b5 commit 496957a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ComposeResourcesTest {
val routing = routing(parentCoroutineContext = coroutineContext) {
install(Resources)

composable<Path> {
composable<Path>(method = RouteMethod.Empty) {
result = call
path = it
fakeContent.content = "I'm the path based content"
Expand Down Expand Up @@ -88,7 +88,7 @@ class ComposeResourcesTest {
install(Resources)
install(StackRouting)

composable<Path> {
composable<Path>(method = StackRouteMethod.Push) {
result = call
path = it
fakeContent.content = "I'm the push based content"
Expand Down
14 changes: 14 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import kotlinx.kover.gradle.plugin.dsl.KoverReportExtension

plugins {
kotlin("multiplatform")
id("org.jlleitschuh.gradle.ktlint")
Expand All @@ -17,3 +19,15 @@ kotlin {
}
}
}

configure<KoverReportExtension> {
filters {
excludes {
packages(
"dev.programadorthi.routing.core.application",
"dev.programadorthi.routing.core.errors",
"dev.programadorthi.routing.core.logging",
)
}
}
}

0 comments on commit 496957a

Please sign in to comment.