I have a multiplatform library module with common ...
# multiplatform
c
I have a multiplatform library module with common and jvm code. It runs just fine in the downstream multiplatform app running on the JVM. I’m having trouble with the unit tests. JVM tests run fine, but they aren’t picking up the common tests. I’ve gone through the docs which say that jvmTest picks up commonTest automatically, but that doesn’t seem to be working. running
./gradlew :modelLib:check
gets me this message:
Copy code
The Kotlin source set commonTest was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
And only the tests in my jvmTest source set are run. the commonTest tests are ignored.