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

Add report task that shows bytecode coverage #494

Open
Ezard opened this issue Oct 24, 2023 · 2 comments
Open

Add report task that shows bytecode coverage #494

Ezard opened this issue Oct 24, 2023 · 2 comments
Assignees
Labels
Feature Feature request issue type Implement in KGP

Comments

@Ezard
Copy link
Contributor

Ezard commented Oct 24, 2023

Sometimes, it is very difficult to determine why a line is either partially covered or not covered at all

This is usually due to the fact that Kover reports on bytecode-level coverage, but then displays the coverage on top of the source code

With the ability to view which lines of bytecode are covered / not covered, it should be substantially easier to determine which paths through the code are actually untested

e.g. I'm currently trying to determine how the following coverage occurs:

when (response) { // fully covered
  is Success -> { // fully covered
    foo()         // fully covered
  }               // partially covered
  is Failure -> { // partially covered
    bar()         // fully covered
  }               // fully covered
}

It could be a bug with Kover, or it could be a weird path through the code that's been mapped strangely to the source code, or it could be something else - the ability to see bytecode coverage would allow this sort of thing to be diagnosed

@Ezard Ezard added Feature Feature request issue type S: untriaged Status: issue reported but unprocessed labels Oct 24, 2023
@shanshin shanshin added the S: postponed Status: work on the issue is not in the short term plans label Oct 27, 2023
@shanshin
Copy link
Collaborator

Relates #272

@shanshin
Copy link
Collaborator

shanshin commented Jan 3, 2025

This task will be taken into account when migrating to Kotlin Gradle Plugin.

In the future, it will be moved to the Kotlin task tracker, or closed if it loses relevance.

@shanshin shanshin added Implement in KGP and removed S: postponed Status: work on the issue is not in the short term plans labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Feature request issue type Implement in KGP
Projects
None yet
Development

No branches or pull requests

2 participants