https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
m

Matt Nelson

09/27/2023, 11:50 AM
Anyone know of a gradle setting I can enable so test failures will print the full exception stacktrace in the terminal output? Would really help when CI fails because the following is unhelpful
Copy code
io.toxicity.sqlite.mc.driver.test.GeneralNativeTest.givenDriver_whenClose_thenCredentialsCleared[linuxX64] FAILED
    kotlin.IllegalStateException at null:-1
e.g. for JVM
Copy code
tasks.withType<Test> {
    testLogging {
        exceptionFormat = TestExceptionFormat.FULL
        events(STARTED, PASSED, SKIPPED, FAILED)
        showStandardStreams = true
    }
}
k

kevin.cianfarini

09/27/2023, 11:52 AM
Copy code
tasks.withType<AbstractTestTask> {
    testLogging {
        exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
        showStandardStreams = true
        showStackTraces = true
    }
}
❤️ 1
for native ^
I suppose it’s actually just for KMP, but the project I’m using it in is native