Scenario
- JaCoCo version: 0.8.5
- Operating system: MacOS
- Tool integration: Gradle, Kotlin
Current Behaviour
Kotlin Interface default implementations like
interface SomeInterface {
fun someFunction() = // Default implementation
}
Will lead to JaCoCo reporting uncovered functions for implementations of those interfaces:
class SomeImplementation: SomeInterface {
}
This is because of the Kotlin compiler effectively adding the default implementation to the compiled class like
public class SomeImplementation implements SomeInterface {
public void someFunction() {
DefaultImpls.someFunction(this)
}
}
Wanted Behaviour
I would like to have those default implementations ignored from JaCoCo. To cover those, it should be fine just to cover the default implementation once.
Scenario
Current Behaviour
Kotlin Interface default implementations like
Will lead to JaCoCo reporting uncovered functions for implementations of those interfaces:
This is because of the Kotlin compiler effectively adding the default implementation to the compiled class like
Wanted Behaviour
I would like to have those default implementations ignored from JaCoCo. To cover those, it should be fine just to cover the default implementation once.