Skip to content

Drop in coverage with KSP 2.3.x version #775

@realdadfish

Description

@realdadfish

Describe the bug

Between KSP 2.1.21-2.0.1 and 2.3.2 there must have been a change that affects coverage calculation on data classes with kotlinx-serialization attributes.

With 2.0.1 I get 100% coverage:

Image

whereas with 2.3.2 I only get 50% coverage:

Image

Notice that in both cases not the actual property, but only the annotation is highlighted in green.

Environment

  • Kover Gradle Plugin version: 0.8.3
  • Gradle version: 9.1.0
  • Kotlin project type: Kotlin/Multiplatform + Android
  • Coverage Toolset (if customized in build script): Kover

Metadata

Metadata

Assignees

Labels

BugBug issue typeS: untriagedStatus: issue reported but unprocessed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions