I just upgraded to version 1.0.1 of Karate from 0.9.6. Earlier all karate cucumber format .json reports were generated in a single folder: target/surefire-reports
.
After the upgrade I can see that for each test runner which uses Runner.path
builder to run a test feature file with outputCucumberJson(true)
is creating the json file in folder's that have a number suffixed. eg, I have folders in target
like:
karate_reports
karate_reports_162988888
karate_reports_162988777
Because of this the jenkins cucumber plugin that was working previously does not find the .json files. I have tried clearing the field JSON Reports Path
in jenkins cucumber plugin so it scans the whole directory for json files but it does not work.
Any ideas what is going on? Can we still get all json files created in single folder when tests run via maven?
Also I tried setting the reportDir
in the Runner.path
builder but I still get multiple folders with suffixed numbers.
Help appreciated.
Yes there is a configuration setting called: backupReportDir()
which you can set to false
.
And next time, please try the RC releases earlier so that you can avoid these kinds of surprises and also alert us if we un-intentionally make breaking changes.
Finally, we do not recommend multiple test-runners in CI, you should have only one, and within that you can "select" different folder hierarchies or individual feature files to compose into a "suite".
There are good reasons for this:
Yes some of the above points assume you use the Karate HTML reports instead of the CI, JUnit or 3rd-party Cucumber reports. But this is the best practice, and the Karate reports are what we will focus on in the long term.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments