val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:0.9.1")
}
}
I'm getting
Unresolved reference: Test
when I try and
gradle check
this multiplatform project. IntelliJ is able to find
test-annotations-common
at least enough to auto-import and stuff but something about the tests loses it?
Talon
01/30/2019, 8:43 PM
oh my bad just read the docs "kotlin-test-junit – provides an implementation of Asserter on top of JUnit and maps the test annotations from kotlin-test-annotations-common to JUnit test annotations;"
just had to add
Copy code
val jvmTest by getting {
dependencies {
// ...
implementation(kotlin("test-junit"))
}
}