wellingtoncosta
04/01/2025, 4:33 PMcheck
task or by hitting the play button.
// 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
}
}
}
}