Anyone know of a gradle setting I can enable so te...
# kotlin-native
m
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
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