Open mgroth0 opened 1 month ago
Here is the reproducer: https://github.com/mgroth0/kover-573
To reproduce:
./gradlew test -i
and observe that the output is hello test fun 1
hello test fun 1 lambda
hello test fun 2
hello test fun 2 lambda
./gradlew koverVerify
and observe it fails with Rule violated: lines covered percentage is 87.500000, but expected minimum is 100
./gradlew koverHtmlReport
and observe in the HTML report that the line of code println("hello test fun 2 lambda")
was not detected to have executed.
As the output from step 1 shows, however, the line definitely did execute.
Error reproduced when inline function, with a call to other inline functions inside, is used directly in the test
Describe the bug
I have discovered a case where an inline operation is not correctly detected by Kover.
Errors
This leads to errors in
koverVerify
if we exepct to have covered this code block.Expected behavior
Inline operations should be detected just as non-inline operations are.
Reproducer
I will link a full reproducer project in a few minutes.
Environment
0.8.0-Beta
8.6
Kotlin/JVM