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.
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.
but if most of your code is in common, you can measure the coverage through jvm or android.
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 🙂.