mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Add rule for minimum test coverage on States
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user