Kotlin / kotlinx-kover

Apache License 2.0
1.28k stars 48 forks source link

Add Kover support for Android Gradle Plugin #96

Open shanshin opened 2 years ago

shanshin commented 2 years ago

The current implementation of the IntelliJ Coverage Agent allows you to run only Java tests running on the same machine where the Gradle build is running.

To implement coverage measurement on an Android device, it is necessary:

Vaibhav-Personall commented 2 years ago

Are we doing any development around this issue?

shanshin commented 2 years ago

@Vaibhav1412, unfortunately, at the moment we have not yet started implementing test instrumentation on Android devices.

After assessing the complexity of the implementation of such functionality, we will be able to more accurately announce the terms.

jtomlinson commented 2 years ago

Any updates on how this might be progressing in development or somewhat of an ETA on when we might see this working?

shanshin commented 2 years ago

@jtomlinson, this issue is in the plans, but at the moment we are focused on making the API more convenient and adding support for filtering by flavors/build types. After improving the API, we will start exploring ways to instrument Android devices.

pajatopmr commented 1 year ago

As I write this comment, my take on the status of using Kover for Android instrumentation tests is that it is not yet ready but that Jacoco is still usable to some degree. Is that a correct take?

shanshin commented 1 year ago

@pajatopmr, yes, at the moment, it is preferable to use JaCoCo for instrumentation tests.

merlinstardust commented 6 months ago

Any updates as to when Kover will support Android Instrumentation tests?

If not, how can I pull in the coverage data from JaCoCo and combine it with Kover's so I can get a full report?

RobinFarmer commented 5 months ago

Over a year since the last comment I was wondering if there have been any efforts been put into this issue?

shanshin commented 5 months ago

Yes, work is underway in this direction