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
The coverage report is still flagging the companion object and private LOG as not covered:
If I also put my annotation on the companion object then the private val LOG = KotlinLogging.logger { } line is flagged as not covered.
Errors
None
Expected behavior
Members of a companion object, especially private members, should not be expected to be covered by tests if the containing class has been excluded from coverage.
Reproducer
Code examples above.
Reports
Report screenshot above.
Environment
Kover Gradle Plugin version: 0.7.1
Gradle version: 8.1.1
Kotlin project type: Kotlin/JVM 1.8/17
The text was updated successfully, but these errors were encountered:
Describe the bug
I've got a simple annotation to exclude classes from kover.
It is configured like this in
build.gradle.kts
:I'm using it on a class like this:
The coverage report is still flagging the
companion object
and privateLOG
as not covered:If I also put my annotation on the
companion object
then theprivate val LOG = KotlinLogging.logger { }
line is flagged as not covered.Errors
None
Expected behavior
Members of a companion object, especially private members, should not be expected to be covered by tests if the containing class has been excluded from coverage.
Reproducer
Code examples above.
Reports
Report screenshot above.
Environment
The text was updated successfully, but these errors were encountered: