Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Coverage is calculated incorrectly #696

Open
Catah97 opened this issue Oct 25, 2024 · 0 comments
Open

Code Coverage is calculated incorrectly #696

Catah97 opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed

Comments

@Catah97
Copy link

Catah97 commented Oct 25, 2024

Describe the bug
Code Coverage is calculated incorrectly. This happens in reports and verification tasks.

Errors
As you can see in this picture:
Snímek obrazovky 2024-10-25 v 17 24 19

Kover thinks that lines 52,53 are not covered with tests, but they are.
Snímek obrazovky 2024-10-25 v 17 23 41

And if I move deleteAll up, then this happends.

Snímek obrazovky 2024-10-25 v 17 26 05

This starts happening after migrate to Kotlin 2.0.0 and Kover v0.8.3. I have tested it on v0.9.0-RC and it was same.
With Kkotlin = "1.9.23" and Kover = "0.7.6" everything were fine.

Expected behavior
All lines in CacheStoreFactoryTest should be covered.

Reproducer
Project is here:
https://github.com/Catah97/KoverCoverageBugs

Module multiplatform/cache.
Run koverHtmlReport gradle task.

Environment

  • Kover Gradle Plugin version: 0.8.3
  • Gradle version: 8.7
  • Kotlin project type: Kotlin/Multiplatform + Android
  • Other context important for this bug: Test on MacOs
@Catah97 Catah97 added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed
Projects
None yet
Development

No branches or pull requests

2 participants