Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add simple native test (main) #219

Merged
merged 1 commit into from Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions build.gradle.kts
Expand Up @@ -105,6 +105,12 @@ kotlin {
val nativeMain by creating {
dependsOn(commonMain)
}
val nativeTest by creating {
dependsOn(nativeMain)
dependencies {
implementation(kotlin("test"))
}
}
val linuxMain by creating {
dependsOn(nativeMain)
}
Expand Down
12 changes: 12 additions & 0 deletions src/commonTest/kotlin/mu/SimpleTest.kt
@@ -0,0 +1,12 @@
package mu

import kotlin.test.Test

class SimpleTest {
private val logger = KotlinLogging.logger {}

@Test
fun simpleTest() {
logger.info { "Hello!" }
}
}
9 changes: 9 additions & 0 deletions src/nativeTest/kotlin/mu/SimpleTest.kt
@@ -0,0 +1,9 @@
package mu

class SimpleTest {}

private val logger = KotlinLogging.logger {}

fun main() {
logger.info { "Hello!" }
}