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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user