rocketraman
08/25/2023, 5:26 AMtasks.withType<Test>().configureEach {
useJUnitPlatform()
}
then only the kotest tests run, but not my old tests. If I don't use that, then my old tests run, but not my kotest tests. Any ideas? I have added the kotest.multiplatform plugin and the kotest framework engine in commonTest
.CLOVIS
08/25/2023, 11:36 AMuseJUnitPlatform
enables JUnit5 support, so if you have JUnit4 tests, they won't run.
If you use kotlin.test, migrating from JUnit4 to JUnit5 is just a matter of changing the dependenciesrocketraman
08/25/2023, 12:59 PMandroidTest
source set does have a reference to junit4 (because AFAIK android uses junit4). I didn't think that affected commonTest
but looks like it does -- commenting out those androidTest deps results in compile errors.rocketraman
08/25/2023, 1:18 PM