Add rule for minimum test coverage on States

This commit is contained in:
Benoit Marty 2023-02-09 18:23:28 +01:00
parent 996537a890
commit 5e842dd683

View file

@ -212,5 +212,18 @@ koverMerged {
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
}
}
// Rule to ensure that coverage of State is sufficient.
rule {
name = "Check code coverage of states"
target = kotlinx.kover.api.VerificationTarget.CLASS
overrideClassFilter {
includes += "*State"
}
bound {
minValue = 90
counter = kotlinx.kover.api.CounterType.INSTRUCTION
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
}
}
}
}