kotlinx-kover
kotlinx-kover copied to clipboard
Unknown missing method coverage for Koin default modules
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:
And here's the JaCoCo report:
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