Using KotlinTest with gradle. Executing the tests in a Jenkins pipeline although the reports generated aren't containing the BehaviorSpec steps. This is making my reports unusable.
Has anyone encountered a similar issue or knows of a different method to generate a more descriptive report.
gradle test task
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"
}
}
pipeline post step
post {
always {
archiveArtifacts artifacts: 'build/libs/**/*.jar', fingerprint: true
junit 'build/test-results/test/*.xml'
}
}