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:
parent
3922736083
commit
7b6d98c7d8
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue