2014-01-06 65 views

回答

7

有一个可爱的小插件转换:https://github.com/tebeka/go2xunit

进行安装:

go get github.com/tebeka/go2xunit 

要使用它:

# Run your tests like normal, but pipe the verbose output to the converter 
go test -v | $GOPATH/bin/go2xunit > test_output.xml 

如果你在正常$PATH$GOPATH/bin

go test -v | go2xunit > test_output.xml