https://kotlinlang.org logo
#code-coverage
Title
# code-coverage
k

KotlinLeaner

03/10/2023, 12:13 AM
Hi, I don't know where to ask about Kotlin-kover. Is there any channel for kover ?
a

Alejandro Rios

03/10/2023, 1:52 AM
I think you can ask here
k

KotlinLeaner

03/10/2023, 5:35 PM
Is kover support code coverage for Android jetpack compose?
p

pajatopmr

03/13/2023, 1:36 PM
Last time I checked (six months or so ago) I could use Kover in the test module but not in the androidTest module and definitely not for Compose. And my fingers are crossed that someone soon responds that Kover works with on-device testing (androidTest) but I’m not holding my breath while waiting.
k

KotlinLeaner

03/13/2023, 1:38 PM
Is there any plan for this quarter or this year ?
p

pajatopmr

03/13/2023, 1:44 PM
My considered opinion is that we are talking years, not months. And I think we will see Compose code coverage in non-android projects before the AOSP gets to it.
c

Chrimaeon

03/13/2023, 4:42 PM
@KotlinLeaner, I think you asked this question already: Kover is just a wrapper around jacoco or IDEA Test coverage. Compose is mainly compiler generated code and no code coverage tool so far is capable to hook into generated code and check the coverage of the code you actually write.
k

KotlinLeaner

03/13/2023, 4:44 PM
Yes, I might be ask before as well. Thanks for explanation in the message. I'll remember for future not to ask same question.
k

KotlinLeaner

03/14/2023, 11:59 AM
Thanks 👍
63 Views