Hi, how can the test coverage be measured in a kotlin multiplatform shared module for all module com...
r
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
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
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
Great documentation thanks a lot for this πŸ‘