Skip to content

Commit 8dbb266

Browse files
committed
add simple native and common test
1 parent 0c82d79 commit 8dbb266

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ kotlin {
105105
val nativeMain by creating {
106106
dependsOn(commonMain)
107107
}
108+
val nativeTest by creating {
109+
dependsOn(nativeMain)
110+
dependencies {
111+
implementation(kotlin("test"))
112+
}
113+
}
108114
val linuxMain by creating {
109115
dependsOn(nativeMain)
110116
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package mu
2+
3+
import kotlin.test.Test
4+
5+
class SimpleTest {
6+
private val logger = KotlinLogging.logger {}
7+
8+
@Test
9+
fun simpleTest() {
10+
logger.info { "Hello!" }
11+
}
12+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package mu
2+
3+
class SimpleTest {}
4+
5+
private val logger = KotlinLogging.logger {}
6+
7+
fun main() {
8+
logger.info { "Hello!" }
9+
}

0 commit comments

Comments
 (0)