I'm having an issue setting up my multiplatform project for unit testing with Koin. When I add the the Koin jUnit4 dependency it completely breaks every other dependencies as all gets missing.
Copy code
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("io.insert-koin:koin-test:${versions.koin}")
implementation("io.insert-koin:koin-test-junit4:${versions.koin}")
implementation("io.mockk:mockk-common:1.12.0")
}
}
What could be wrong here?
e
ephemient
10/12/2021, 10:51 AM
JUnit in jvmTest only
c
chi
10/12/2021, 10:54 AM
Ah, true. That means I can't use the KoinTestRule class in my common module even though I can use Koin in my common module.