CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

Multiple run and XML report

Open enes-ergul opened this issue 9 years ago • 3 comments

What are you trying to achieve?

I want to use the new multiple run feature and export the report as xml file

$(npm bin)/codeceptjs run-multiple --all --reporter mocha-junit-reporter

What do you get instead?

Only one of the parallel runs is present in the XML output

Details

  • CodeceptJS version: 0.6.3
  • NodeJS Version: 6.9.2
  • WebDriverIO Version: 4.8.2
  • Mocha JUnit Reporter Version: 1.13.0

enes-ergul avatar Jun 07 '17 11:06 enes-ergul

Even I am facing the same issue. Actually I don't even see the steps also. Is these any solution for this ?

shrikanthkm07 avatar Jun 22 '17 12:06 shrikanthkm07

@enes-ergul @shrikanthkm07 As I understand, You use this npm package? https://www.npmjs.com/package/mocha-junit-reporter If so, than we have to add new override in multiple-run for mochaFile parameter. https://github.com/Codeception/CodeceptJS/blob/master/lib/command/run-multiple.js#L95 and pass reporter folder via codeceptJS config.

You can add PR for this or wait, when I'll be able to take this in work

APshenkin avatar Jun 25 '17 21:06 APshenkin

@enes-ergul @shrikanthkm07 I have added new override in multiple-run. Reports files will have report.xml name. This changes will come with 1.0 release

APshenkin avatar Jun 28 '17 11:06 APshenkin