xunit-viewer icon indicating copy to clipboard operation
xunit-viewer copied to clipboard

Support for XUnit 2

Open firelizzard18 opened this issue 8 years ago • 8 comments
trafficstars

I would love to use this project, but I can't. I'm using XUnit 2, which has a different output format. So xunit-viewer doesn't do anything.

firelizzard18 avatar Nov 01 '17 18:11 firelizzard18

Do you have sample output? I could update it

lukejpreston avatar Nov 01 '17 19:11 lukejpreston

It's not something I want to post publicly. I've emailed you a file.

Here's XUnit's XLST: https://github.com/xunit/xunit/blob/master/src/xunit.console/HTML.xslt

firelizzard18 avatar Nov 03 '17 18:11 firelizzard18

https://github.com/lukejpreston/xunit-viewer/issues/51#issue-482359497

lukejpreston avatar Sep 04 '19 10:09 lukejpreston

Looking for sample Xunit Unit 2 code in order to be able to get Xunit Viewer to render it

lukejpreston avatar Nov 29 '19 09:11 lukejpreston

How about this? https://xunit.net/docs/format-xml-v2

LordLyng avatar Aug 17 '20 13:08 LordLyng

How about this? https://xunit.net/docs/format-xml-v2

Sorry for the late reply.

Thanks for the link, when I first created this tool I used a doc about Xunit and quickly found examples I hadn't thought of in the wild and learned that real examples are better than my crude ones.

I also don't use a tool that produces Xunit 2 results. I don't know whether anyone can recommend a testing library that does this? Then I could just use that and make a bunch of random tests.

lukejpreston avatar Apr 13 '21 15:04 lukejpreston

Here's a sample of what should be xunit-v2 from a public repo TestResults.xml.txt

vaind avatar Jul 04 '22 10:07 vaind