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
Recently, I updated the Kover version in my KMM project from 0.8.1 to 0.8.3, and I noticed my data classes annotated with @Serializable were not fully covered. The annotation line looks yellow in the HTML report, stating it is partially covered.
I've tried excluding "*.*serializer*" from coverage report (as mentioned in some previous issue reported 1 or 2 years ago), but it didn't help.
Errors
N/A
Expected behavior
Data class should be fully covered, ignoring the @Serializable annotation line. I don't want to exclude the whole data class to solve this issue, just the annotation part. Am I doing something wrong or Kover needs to consider updating itself after Kotlin 2.0 update (I'm using v2.0.20)?
Reproducer
N/A
Reports
This is my data class in the Kover report:
This is the coverage summary:
Environment
Kover Gradle Plugin version: 0.8.3
Gradle version: 8.7
Kotlin project type: Kotlin/Multiplatform
Coverage Toolset (if customized in build script): Kover
Other context important for this bug: Kotlin version - 2.0.20
The text was updated successfully, but these errors were encountered:
saurabh-somani-philips
changed the title
Kotlinx Serialization annotation line considered in the coverage report
Kotlinx Serialization annotation line included in the coverage report
Sep 13, 2024
@shanshin
I tried excluding it from the coverage report. The Companion object's coverage disappears, but main data class's 'Branch' and 'Instruction' coverage still has some coverage left. The same is reflected in our SonarQube report, so the ultimate aim is to fix the Sonar report coverage.
Describe the bug
Recently, I updated the Kover version in my KMM project from 0.8.1 to 0.8.3, and I noticed my data classes annotated with
@Serializable
were not fully covered. The annotation line looks yellow in the HTML report, stating it is partially covered.I've tried excluding
"*.*serializer*"
from coverage report (as mentioned in some previous issue reported 1 or 2 years ago), but it didn't help.Errors
N/A
Expected behavior
Data class should be fully covered, ignoring the
@Serializable
annotation line. I don't want to exclude the whole data class to solve this issue, just the annotation part. Am I doing something wrong or Kover needs to consider updating itself after Kotlin 2.0 update (I'm using v2.0.20)?Reproducer
N/A
Reports
This is my data class in the Kover report:
This is the coverage summary:
Environment
The text was updated successfully, but these errors were encountered: