Posted at

golangのテスト結果をJUnit Report形式で出力して、CircleCIで表示

More than 3 years have passed since last update.

test:                                                                                                                                 

override:
- go get -u github.com/jstemmer/go-junit-report
- mkdir -p $CIRCLE_TEST_REPORTS/golang
- |
{ go test -v $(go list ./...|grep -v vendor); echo $? > /tmp/status;} | go-junit-report > $CIRCLE_TEST_REPORTS/golang/junit.xml;
exit `cat /tmp/status`;

これでOK