You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Kover shows zero coverage for a public extension method.
Errors
Kover shows a different coverage than Android Studio's "Run with Coverage".
Expected behavior
Kover should show the same coverage as Android Studio's "Run with Coverage".
Reproducer
// src/main/kotlin/<package>/SampleExtensions.kt
// interesting: displayed as "SampleExtensionsKt" in Kover's HTML report
fun Sample.doSomethingInExtension() { ... } // Kover: 0% coverage
// src/main/kotlin/<package>/SampleViewModel.kt
// displayed as "SampleViewModel" in Kover's HTML report
class SampleViewModel {
fun doSomethingInViewModel() {
Sample().doSomethingInExtension() // Kover: 100% coverage
}
}
// src/test/kotlin/<package>/SampleViewModelSpec
class SampleViewModelSpec : io.kotest.core.spec.style.WordSpec() {
init {
"SampleViewModel" should {
"call extension" {
SampleViewModel().doSomethingInViewModel()
}
}
}
}
Describe the bug
Kover shows zero coverage for a public extension method.
Errors
Kover shows a different coverage than Android Studio's "Run with Coverage".
Expected behavior
Kover should show the same coverage as Android Studio's "Run with Coverage".
Reproducer
Environment
The text was updated successfully, but these errors were encountered: