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
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 return
results-${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