mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Reduce code coverage threshold for presenters
Drop from 90% to 85% to allow for smaller presenters where the number of untestable instructions generated by kotlin/compose can reach ~10% of the entire file.
This commit is contained in:
+1
-4
@@ -225,12 +225,9 @@ koverMerged {
|
|||||||
includes += "*Presenter"
|
includes += "*Presenter"
|
||||||
excludes += "*Fake*Presenter"
|
excludes += "*Fake*Presenter"
|
||||||
excludes += "io.element.android.appnav.loggedin.LoggedInPresenter$*"
|
excludes += "io.element.android.appnav.loggedin.LoggedInPresenter$*"
|
||||||
// Too small presenters, cannot reach the threshold.
|
|
||||||
excludes += "io.element.android.features.onboarding.impl.OnBoardingPresenter"
|
|
||||||
excludes += "io.element.android.features.preferences.impl.about.AboutPresenter"
|
|
||||||
}
|
}
|
||||||
bound {
|
bound {
|
||||||
minValue = 90
|
minValue = 85
|
||||||
counter = kotlinx.kover.api.CounterType.INSTRUCTION
|
counter = kotlinx.kover.api.CounterType.INSTRUCTION
|
||||||
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
|
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user