与gradle一起使用KotlinTest。尽管生成的报告不包含BehaviorSpec步骤,但仍在Jenkins管道中执行测试。这使我的报告无法使用。
任何人遇到类似问题或知道使用不同方法生成更具描述性的报告的情况。
分级测试任务
compareTo()
管道发布步骤
test {
useJUnitPlatform()
systemProperties = System.properties
// show standard out and standard error of the test JVM(s) on the console
scanForTestClasses = false
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
// Always run tests, even when nothing changed.
dependsOn 'cleanTest'
testLogging {
events "PASSED", "FAILED", "SKIPPED", "STANDARD_OUT", "STANDARD_ERROR"
}
}