You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running 2 cucumber runner files. One will run all the tests and failed feature will store in a rerun.text file. 2nd runner will be used to rerun failed feature only. In this case i am getting two different json files. is there any way that i can configure to get single HTML report
Jenkins file creating two json files but failing to genarate reports
test {
// Configure rerun.txt file generation
// This example is for Cucumber
systemProperty 'cucumber.options', "--rerun-file=${buildDir}/rerun.txt"
}
// Define task to generate HTML reports using Maven Cucumber Reporting
task generateCucumberReports(type: Exec) {
// Ensure this task runs after tests are executed
dependsOn test
I am running 2 cucumber runner files. One will run all the tests and failed feature will store in a rerun.text file. 2nd runner will be used to rerun failed feature only. In this case i am getting two different json files. is there any way that i can configure to get single HTML report
Jenkins file creating two json files but failing to genarate reports
Build.gradle
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'io.cucumber:cucumber-java:6.10.4'
testImplementation 'io.cucumber:cucumber-junit:6.10.4'
testImplementation 'junit:junit:4.13.2'
implementation 'net.masterthought:cucumber-reporting:5.8.1' // Maven Cucumber Reporting
implementation 'net.masterthought:maven-cucumber-reporting:5.8.1'
}
test {
// Configure rerun.txt file generation
// This example is for Cucumber
systemProperty 'cucumber.options', "--rerun-file=${buildDir}/rerun.txt"
}
// Define task to generate HTML reports using Maven Cucumber Reporting
task generateCucumberReports(type: Exec) {
// Ensure this task runs after tests are executed
dependsOn test
def classpath = configurations.runtimeClasspath.collect { it.absolutePath }.join(':')
}
//reports.junitXml.destination = file("$buildDir/test-results/test")
// Ensure the generateCucumberReports task runs after tests
test.finalizedBy generateCucumberReports
test {
useJUnit()
}
wrapper {
gradleVersion = '8.8' //version required
}
Jenkins file
pipeline {
agent any
}
The text was updated successfully, but these errors were encountered: