Hey there, I'm trying to run a simple test suite u...
# kotest
w
Hey there, I'm trying to run a simple test suite using Kotest in a KMP module, but it doesn't seem to work, neither via terminal by running the
check
task or by hitting the play button.
Copy code
// libs.versions.toml
kotest = [
    "kotest-framework-engine",
    "kotest-assertions",
    "kotest-property",
]

// build.gradle.kts
commonTest {
    dependencies {
        implementation(kotlin("test-common"))
        implementation(kotlin("test-annotations-common"))

        implementation(libs.kotlinx.coroutines.test)
        implementation(libs.bundles.kotest)
        implementation(libs.koin.test)
        implementation(libs.turbine)
    }
}

// in commonTest source set
class KotestSampleTest : BehaviorSpec() {
    init {
        Given("2 + 2") {
            Then("it must be 4") {
                2 + 2 shouldBeEqual 4
            }
        }
    }
}