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
.
c
CLOVIS
08/25/2023, 11:36 AM
What are your "old tests" written in?
useJUnitPlatform
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 dependencies
r
rocketraman
08/25/2023, 12:59 PM
My
androidTest
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
Swapping those to junit5 with vintage for junit4 support works, my old tests run as spected, but my kotest tests still don't run.