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

Unknown missing method coverage for Koin default modules #670

Open
JordanLongstaff opened this issue Aug 7, 2024 · 0 comments
Open

Unknown missing method coverage for Koin default modules #670

JordanLongstaff opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
Bug Bug issue type S: confirmed Status: bug is reproduced or present

Comments

@JordanLongstaff
Copy link

Describe the bug
When using Koin annotations, default Koin modules are generated using KSP. In calculating coverage for these modules, Kover indicates (in green) that they are fully covered. However, the method coverage is only 3 out of 4, or 75%.

I recently switched from JaCoCo to Kover. JaCoCo reports the method coverage as 5 out of 5, or 100%. It also lists all of the methods. Kover gives no listing of methods and no indication of what is missing.

Expected behavior
The method coverage should be 100%.

Reproducer
This code file uses a Koin annotation, which is then processed by KSP to generate the file shown in the report below.

package com.walkertribe.ian.protocol

// Unimportant imports redacted
import org.koin.core.`annotation`.Single

@Single
public class KoinProtocol : Protocol {
  // Unimportant code redacted
}

Link to my project here.

Reports
Here's the Kover report:
Screen Shot 2024-08-07 at 6 18 06 PM

And here's the JaCoCo report:
Screen Shot 2024-08-07 at 6 32 28 PM

Environment

  • Kover Gradle Plugin version: 0.8.3
  • Gradle version: 8.7
  • Kotlin project type: Kotlin/Android
  • Coverage Toolset (if customized in build script): Kover
@JordanLongstaff JordanLongstaff added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Aug 7, 2024
@shanshin shanshin added S: confirmed Status: bug is reproduced or present and removed S: untriaged Status: issue reported but unprocessed labels Aug 8, 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: confirmed Status: bug is reproduced or present
Projects
None yet
Development

No branches or pull requests

2 participants