Exclude some class from State coverage check

> Rule 'Check code coverage of states' violated:
    instructions covered percentage for class 'io.element.android.libraries.mediaviewer.impl.local.player.MediaPlayerControllerState' is 0.000000, but expected minimum is 90
    instructions covered percentage for class 'io.element.android.libraries.textcomposer.components.FormattingOptionState' is 0.000000, but expected minimum is 90
This commit is contained in:
Benoit Marty 2025-02-06 15:50:02 +01:00
parent 5456f0e38e
commit ad33151968

View file

@ -54,7 +54,6 @@ fun Project.setupKover() {
description = "Verifies the code coverage of all subprojects."
val dependencies = listOf(":app:koverVerifyGplayDebug") + koverVariants.map { ":app:koverVerify${it.replaceFirstChar(Char::titlecase)}" }
dependsOn(dependencies)
}
// https://kotlin.github.io/kotlinx-kover/
// Run `./gradlew :app:koverHtmlReport` to get report at ./app/build/reports/kover
@ -180,7 +179,9 @@ fun Project.setupKover() {
"io.element.android.libraries.matrix.api.timeline.item.event.OtherState$*",
"io.element.android.libraries.matrix.api.timeline.item.event.LocalEventSendState*",
"io.element.android.libraries.mediaviewer.impl.local.pdf.PdfViewerState",
"io.element.android.libraries.mediaviewer.impl.local.player.MediaPlayerControllerState",
"io.element.android.libraries.textcomposer.model.TextEditorState",
"io.element.android.libraries.textcomposer.components.FormattingOptionState",
)
includes.classes("*State")
}