Skip to content

Commit 16d6e23

Browse files
committed
Add Kotest assertions core library to nativeTest dependencies
The Kotest assertions core library was added to `libs.versions.toml` and included as a dependency in the `nativeTest` configuration. This prepares the project for more comprehensive and expressive test assertions in native tests. Unused imports in `BitstringTest.kt` were also cleaned up to simplify the code.
1 parent b01981d commit 16d6e23

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

kotest-native/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ kotlin {
2727
nativeTest {
2828
dependencies {
2929
implementation(libs.kotest.framework.engine)
30+
implementation(libs.kotest.assertions.core)
3031
}
3132
}
3233
}

kotest-native/gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ kotlin = "2.2.0"
44

55
[libraries]
66
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
7+
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
78

89
[plugins]
910
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

kotest-native/src/nativeTest/kotlin/io/kotest/examples/native/BitstringTest.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package io.kotest.examples.native
22

3-
import io.kotest.assertions.throwables.shouldThrowAny
4-
import io.kotest.core.spec.style.DescribeSpec
5-
import io.kotest.matchers.shouldBe
6-
73
//class BitstringTest : DescribeSpec() {
84
// init {
95
// describe("bit strings") {

0 commit comments

Comments
 (0)