Kotlin / kotlinx-kover

Apache License 2.0
1.37k stars 53 forks source link

Compose end line are not covered in coverage #601

Closed ds-griddynamics closed 4 months ago

ds-griddynamics commented 7 months ago

Describe the bug When generating coverage compose last lines are not covered check screenshot, I have tried will all next version 0.7.x and 0.8.x none of them are working.

Errors If present, stacktraces or files from build/kover/errors directory

Expected behavior A clear and concise description of what you expected to happen.

Reproducer

Reports If applicable, report files or screenshots.

Screenshot 2024-04-25 at 9 05 51 PM

Environment

galex commented 6 months ago

Got here because of the same issue!

Screenshot 2024-05-19 at 22 15 42

Start and end of this function are considered untested branches and instructions apparently. Probably because of the magic of the Compose Compiler that adds $recomposer and other parameters and code... 🤔

shanshin commented 4 months ago

Fixed in 0.8.2