Vishnu Shrikar
11/10/2023, 8:50 AMval commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("io.kotest:kotest-assertions-core:${project.property("kotest-assertions-version")}")
implementation("io.kotest:kotest-framework-engine:${project.property("kotest-assertions-version")}")
}
}
I then created the commonTest directory under the src folder so it looks like the included image. I also created a class called DatabaseTest.
Then I wrote this test
class DatabaseTest : FreeSpec() {
init {
"test" {
0 shouldBe 0
fail("ssp")
}
}
}
Doing ./gradlew test shows successful which means its not running the test.
Running the test through the kotest plugin gives me this error
Cannot locate tasks that match ':composeApp:compileJava' as task 'compileJava' is ambiguous in project ':composeApp'. Candidates are: 'compileDebugAndroidTestJavaWithJavac', 'compileDebugJavaWithJavac', 'compileDebugUnitTestJavaWithJavac', 'compileReleaseJavaWithJavac', 'compileReleaseUnitTestJavaWithJavac'.
Any clue on how to solve this annoyance?Distractic
11/10/2023, 10:22 AMio.kotest:kotest-runner-junit5:$version
in JvmTest moduleDistractic
11/10/2023, 10:22 AMval jvmTest by getting {
dependencies {
implementation("io.kotest:kotest-runner-junit5:$version")
}
}
Distractic
11/10/2023, 10:23 AM$version
is the kotest version of courseVishnu Shrikar
11/10/2023, 4:06 PMDistractic
11/10/2023, 4:06 PMDistractic
11/10/2023, 4:06 PMVishnu Shrikar
11/10/2023, 4:07 PMDistractic
11/10/2023, 4:07 PMVishnu Shrikar
11/10/2023, 4:07 PMVishnu Shrikar
11/11/2023, 2:19 AM