Skip to content

Commit

Permalink
Use gotestsum for JUnit output instead
Browse files Browse the repository at this point in the history
gotestsum is included in the CircleCI images, so no need to download something extra.
  • Loading branch information
slai committed Jan 2, 2019
1 parent 2214794 commit 08b7299
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ jobs:
- run: mkdir -p "$TEST_RESULTS"
- run: mkdir -p "$OUTPUT_BIN"

- run: go get github.com/jstemmer/go-junit-report

- run:
name: Run unit tests
command: |
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
go test -v 2>&1 | tee ${TEST_RESULTS}/go-test.out
command: gotestsum --junitfile ${TEST_RESULTS}/go-test-report.xml

- run: go build

Expand Down

0 comments on commit 08b7299

Please sign in to comment.