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.