webdriverio-boneyard / wdio-junit-reporter

A WebdriverIO v4 plugin. Report results in junit xml format.
http://v4.webdriver.io
MIT License
11 stars 42 forks source link

report generated using wdio-cucumber-framework have scenarios reported as test suites rather than test cases #104

Open spujar opened 5 years ago

spujar commented 5 years ago

We are running cucumber tests using wdio-cucumber-framework and generate junit repot using wdio-junit reporter. Below are the reporter settings junit: { outputDir: './test/reports/junit', outputFileFormat: function(opts) { // optional returnresults-${opts.cid}.${opts.capabilities}.xml; },

After a scenario is executed, it gets reported are test suite and given when then steps get reported as testcases. Scenario should be reported as test case and given when then info can be part of the test case. Problem with scenario having as test suites is that in jenkins trends, aging is report on failure of steps rather that failure of scenarios