gotestfmt icon indicating copy to clipboard operation
gotestfmt copied to clipboard

Add jUnit XML support

Open janosdebugs opened this issue 3 years ago • 2 comments
trafficstars

Add support for a jUnit-style XML. This will also be helpful when working with CI systems that can understand this XML. This can possibly be implemented using a CI template. A description of the format can be found here.

janosdebugs avatar Feb 13 '22 20:02 janosdebugs

https://github.com/jstemmer/go-junit-report can help to get the job done

$ go test -json ./... | tee out.txt | gotestfmt
(...)
$ go-junit-report -in out.txt -out report.xml -parser gojson

burgesQ avatar Jun 16 '23 10:06 burgesQ

Thanks @burgesQ, it'd still be nice to have it in one tool.

janosdebugs avatar Jun 16 '23 12:06 janosdebugs

Closing this issue because I no longer have time to work on this and no community PR has happened to this end either.

janosdebugs avatar Jun 19 '24 08:06 janosdebugs