LoginSignup
7
6

More than 5 years have passed since last update.

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

Posted at
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

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6