Add rule for minimum test coverage on States
This commit is contained in:
parent
f07bd1761e
commit
4b8c03fc31
1 changed files with 13 additions and 0 deletions
|
|
@ -212,5 +212,18 @@ koverMerged {
|
||||||
valueType = kotlinx.kover.api.VerificationValueType.COVERED_PERCENTAGE
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue