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

Combine test suites and create a single xml file #87

Closed mcelotti closed 6 years ago

mcelotti commented 6 years ago

Hi, is it possible to get a single xml file that combines the results of many test suites instead of many xml files?

christian-bromann commented 6 years ago

This is right now not possible, every test creates its own xml file. Why do you need to have one file? It works perfectly in Jenkins. Also join our Gitter for these kind of questions. This is not necessary an issue.

mcelotti commented 6 years ago

Hi Christian, thanks for the answer, I thought you could label this as a question since having a single file is fundamental for junit xray import (https://confluence.xpand-addons.com/display/XRAY/Import+Execution+Results+-+REST#ImportExecutionResults-REST-JUnitXMLresults). Anyway I'll take a look at the xml creation, maybe I can figure out something on my own, if I find a solution I'll update this issue so that other people can take advantage of it. Thank you.

christian-bromann commented 6 years ago

@mcelotti feel free to propose a PR that bundles all XML files into one so it works with XRAY, we might can have an option for it so people can choose whether or not to bundle it.

mcelotti commented 6 years ago

Ok, I'll take a look to make this configurable so we can have both options