我的gradle测试日志有问题:在控制台上看不到哪个测试已经开始以及测试的结果。我唯一能看到的是应用程序的常规日志。
这是我添加到gradle.properties
文件中的内容:org.gradle.console=plain
这是我在build.gradle
apply plugin: 'java'
....
//I decided to add all the solutions and noone is visible
test {
testLogging{
showStandardStreams = true
info.events = ["standard_out", "standard_error", "started", "failed", "skipped"]
}
useJUnitPlatform()
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}
我还能做什么?