【发布时间】:2021-01-05 05:18:12
【问题描述】:
我尝试为所有Test 类型的任务设置如下:
tasks.withType<Test> {
testLogging {
exceptionFormat = TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
但该设置仅适用于JVM,而不适用于Kolin/Multiplatform上的所有目标。
如何引导/启用标准输出和标准错误流在控制台中输出?
在控制台中只打印异常名称(甚至不打印异常消息):
> Task :keyboard:linuxX64Test FAILED
com.github.animeshz.keyboard.NativeKeyboardHandlerTest.Caps lock key should be toggled when KeyDown event is triggered FAILED
kotlin.IllegalStateException
com.github.animeshz.keyboard.NativeKeyboardHandlerTest.Test send and receive event FAILED
kotlin.IllegalStateException
我现在不知道如何调试这个,当我在多个目标(在虚拟机上)上测试库时,我没有(想要安装)Intellij。
【问题讨论】:
标签: kotlin gradle gradle-kotlin-dsl kotlin-multiplatform