xunit / devices.xunit

xUnit.net Runners for Devices
Other
73 stars 36 forks source link

Add Ability to Use XmlTestExecutionVisitor or Custom ResultListener #44

Closed Jyosua closed 6 years ago

Jyosua commented 8 years ago

I think this is pretty straightforward and clear, but basically: I would like to get xUnit-style XML Results, because I can run a transform on them to change them to NUnit-style and have our build servers read the XML as part of our CI processes.

As it stands, without just importing this projects code and modifying it myself, I'm forced to write a parser for the text-file output of the current ResultListener. It doesn't look like I can use my own ResultListener, either, which further forces this requirement. I tried importing some of the source code to make a modified DeviceRunner, but ITestRunner is a private interface.

Overall, it seems like this would be a reasonable desire from other people trying to do Continuous Integration as well. I doubt I'm the only one who'd prefer this to be facilitated a little better, but I could easily be wrong.

clairernovotny commented 8 years ago

I'm always happy to expose a better way to get the results...also PR's :)

It shouldn't be hard to generate an xUnit XML result though and output that to the writer.

joaosilvareed commented 6 years ago

Hi,

I've just faced this issue to be able to use the xml results on my CI, did anyone got anywhere?

Thanks.

Regards,

clairernovotny commented 6 years ago

It's now possible to add a custom IResultsChannel. Will be in the 2.4 release shortly.