You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me as if the Jacoco Ant task to check for coverage get's the percent value of the coverage reported, while it needs to work with the floating point value. Anyways, this is what I see:
> Task :my-component:app:koverLog
[ant:jacocoReport] Rule violated for bundle :app: lines covered ratio is 0.2664, but expected minimum is 1.0000
> Task :my-component:app:koverPrintCoverage
:app line coverage: 26.64%
The expected coverage for this module is 28%, with a threshold of 5%, i.e.
val minBound = (expected - threshold).coerceAtLeast(0)
val maxBound = (expected + threshold).coerceAtMost(100)
so the minBound should be 23 and the maxBound should be 33. The extension is then configured like this:
It seems to me as if the Jacoco Ant task to check for coverage get's the percent value of the coverage reported, while it needs to work with the floating point value. Anyways, this is what I see:
The
expected
coverage for this module is 28%, with athreshold
of 5%, i.e.so the
minBound
should be23
and themaxBound
should be33
. The extension is then configured like this:The
koverVerify
task also runs through as expected, just the log output is confusing.Environment
The text was updated successfully, but these errors were encountered: