kotlin - KotlinTest jUnit 报告不包含 BehaviorSpec 步骤
问题描述
将 KotlinTest 与 gradle 一起使用。尽管生成的报告不包含 BehaviorSpec 步骤,但在 Jenkins 管道中执行测试。这使我的报告无法使用。
有没有人遇到过类似的问题或知道生成更具描述性的报告的不同方法。
分级测试任务
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"
}
}
管道后步骤
post {
always {
archiveArtifacts artifacts: 'build/libs/**/*.jar', fingerprint: true
junit 'build/test-results/test/*.xml'
}
}
解决方案
推荐阅读
- reactjs - 如何在 React Hook 中使用 useState 更新整个 Uint8Array 值?
- git - 为什么我的“合并拉取请求”会自动成为“合并分支”?
- javascript - Google 距离矩阵 API 找不到特定的邮政编码
- javascript - 当有人不在站点的屏幕上时如何重新加载窗口。但是屏幕上的窗口不应该重新加载
- macos - 将 KEXT 移植到 DEXT 无法创建 ACM 串行 TTY 条目
- android - 为什么在指定填充时 mapPadding Prop 没有在 iOS 设备上提供任何填充?
- flutter - 使用页面上的存储库颤动问题
- mqtt - MQTT - 如何知道设备是否收到消息
- python - 如何将python生成的数据透视表的列转移到新的excel表中?
- json - 如何在 laravel 上修复 JSON 的文本乱码?