I have some tests in my commonTest directory that use the built-in kotlin.test library, and some other tests in jvmTest that use io.kotlintest. I start out with a fairly vanilla build.gradle file.
If I run the
jvmTest task, it executes my commonTest tests but not my jvmTest tests.
If I go back and add
jvmTest.useJUnitPlatform() to my build.gradle, then run
jvmTest again, it executes my jvmTest tests, but not my commonTest tests.
Basically it looks like there’s no way to configure build.gradle such that my commonTest and jvmTests run in the same execution.