There's a nice little plugin to convert: https://github.com/tebeka/go2xunit
To install it:
go get github.com/tebeka/go2xunit
To use it:
# Run your tests like normal, but pipe the verbose output to the converter
go test -v | $GOPATH/bin/go2xunit > test_output.xml
If you have $GOPATH/bin
in your normal $PATH
:
go test -v | go2xunit > test_output.xml