I have two cucumber feature files. 1) Feature 1 2) Feature 2
I have one CucumberWithSerenity runner class.
When I run both feature files together, using the same runner class the report generation is failing with the below error.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':runTests'.
Multiple build operations failed. Could not write XML test results
It's a gradle based project, and the task fails.
My observations:
As the serenity is saving the results/screenshots for both the feature files in the same below directory : /target/site/ it's failing to generate two seperate reports at run time. Please can I get some help on how to generate two seperate reports for both feature files using the same runner class.