KotlinTest jUnit报告是';t包含BehaviorSpec步骤

KotlinTest jUnit报告是';t包含BehaviorSpec步骤,kotlin,junit,report,kotlintest,Kotlin,Junit,Report,Kotlintest,将KotlinTest与gradle一起使用。在Jenkins管道中执行测试,尽管生成的报告不包含BehaviorSpec步骤。这使得我的报告无法使用 是否有人遇到过类似的问题或知道生成更具描述性报告的不同方法 梯度测试任务 test { useJUnitPlatform() systemProperties = System.properties // show standard out and standard error of the test JVM(s) on

将KotlinTest与gradle一起使用。在Jenkins管道中执行测试,尽管生成的报告不包含BehaviorSpec步骤。这使得我的报告无法使用

是否有人遇到过类似的问题或知道生成更具描述性报告的不同方法

梯度测试任务

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'
           }
       }

“步骤”是指
给定/何时/然后
层次结构吗?如果是这样,我也不明白,我只知道
然后
部分。虽然我从未真正调查过这个问题,但对我来说,计算
然后
s是很容易的,因为它们的显示顺序与源文件中定义的顺序相同。我遇到了相同的问题(唯一的区别是我使用的是Bitrise)。但它确实使传递测试用例的整个行为方式变得无用。我真的很想在我正在制作的个人应用程序中使用KotlinTest这种方法,但如果没有解决方案,我可能会放弃StringSpec或纯JUnit。你是说
Given/when/then
hierarchy?如果是这样,我也不明白,我只知道
然后
部分。虽然我从未真正调查过这个问题,但对我来说,计算
然后
s是很容易的,因为它们的显示顺序与源文件中定义的顺序相同。我遇到了相同的问题(唯一的区别是我使用的是Bitrise)。但它确实使传递测试用例的整个行为方式变得无用。我真的很想在我正在制作的个人应用程序中使用KotlinTest的这种方法,但如果没有解决方案,我可能会将其用于StringSpec或纯JUnit。