Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kover produces line coverage information with neither covered nor uncovered #699

Open
oxisto opened this issue Oct 31, 2024 · 0 comments
Open
Assignees
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed

Comments

@oxisto
Copy link

oxisto commented Oct 31, 2024

Describe the bug

Under certain circumstances - it seems related to @JvmOverloads functions with defaults, Kover produces line coverage information that are neither covered nor uncovered.

Screenshot 2024-10-31 at 22 47 29

In this example, line 195, which only has a } is marked as green in the HTML interface, but if one looks at the XML file, there is something weird:

<line nr="195" mi="0" ci="0" mb="0" cb="0"/>

Basically, this line is neither covered nor uncovered. While the HTML report says its ok, there are other tools (such as codecov), which are completely thrown by thus and report it as uncovered.

Expected behavior

I would expect, that this line actually would not exist at all.

Reproducer

A commit where it definitely exists: csaf-sbom/kotlin-csaf@11844ec. We are trying to workaround this, so later commits on main might not be used for reproduction.

Reports

see above

Environment

  • Kover Gradle Plugin version: 0.8.3
  • Gradle version: 8.10
  • Kotlin project type: Kotlin/JVM
@oxisto oxisto added Bug Bug issue type S: untriaged Status: issue reported but unprocessed labels Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug issue type S: untriaged Status: issue reported but unprocessed
Projects
None yet
Development

No branches or pull requests

2 participants