https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

rb90

01/19/2021, 3:28 PM
Hi, how can the test coverage be measured in a kotlin multiplatform shared module for all module components (commonMain, iosMain, androidMain)? Jacoco does not support kotlin multiplatform from what I read.
t

Tijl

01/19/2021, 3:36 PM
You can’t, essentially. Kotlin Native has some low level coverage support, but this only works on the macOS target.
👍 1
but if most of your code is in common, you can measure the coverage through jvm or android.
👍 1
r

rb90

01/19/2021, 3:38 PM
Okay great thanks very much for your answer Tijl. So I know that there are no tools at the moment which solves that problem of measuring code coverage for a kotlin multiplatform shared module for all targets 🙂.
t
r

rb90

01/19/2021, 9:44 PM
Great documentation thanks a lot for this 👍
4 Views