-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switching to using the JaCoCo JVM Agent #720
Comments
Hi, I understand from here that xml reports will be in jacoco format and I can easily provide this xml to sonarqube. I don't understand if I couldn't do this, but in the current version of Sonarqube, jacoco is recommended for Kotlin. link sonar.coverageReportPaths or sonar.coverage.jacoco.xmlReportPaths cannot read kover report xml. |
@turkcankeskin, hi, does switching to JaCoCo in Kover help you? |
We have decided to transition to using the JaCoCo agent for Kotlin Coverage.
As part of this change, the current IntelliJ agent, used in the existing Kover Gradle and Maven plugins as well as the CLI, will be deprecated.
This will be carried out as part of the transformation of Kover from a separate plugin into a part of Kotlin.
Motivation
Over time, IntelliJ agent differs less and less from JaCoCo and after supporting inline functions, the JaCoCo agent will be equivalent to the IntelliJ agent in its set of capabilities.
It doesn't make sense to support two different agents with different infrastructure and incompatible execution file formats.
Using another agent forces to use incompatible tools (like reporter and plugins), change build scripts and plugins and pipelines on CI.
Instead of providing alternatives with mandatory migration to products with a different workflow, we decided to integrate as much as possible with an existing and proven product, while adding additional features that will improve the experience with Kotlin.
Changes in approach
Action points
Migration to Kotlin Gradle Plugin
The transition to JaCoCo will be carried out in parallel with the migration of logic to KGP.
It should be completed before the migration of Kover Gradle Plugin to Kotlin Gradle Plugin, however, some work may continue after the migration (for example, creating Kotlin-specific reports)
The text was updated successfully, but these errors were encountered: