bod
09/13/2020, 1:57 PMUnresolved reference assertEquals
in my unit tests. I have these dependencies:
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
Googling a bit it looks like I'm not the only one [1] - but I'm a bit surprised, this seems like a major problem. So I guess my question is: does anyone have a basic example project, with tests, that works?
[1] = https://youtrack.jetbrains.com/issue/KT-40571sourceSets {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
}