Test results not saving

Trying to get my go tests to show up under the tests tab. I am piping the results through go-junit-report to generate junit style tests. Here is the relevant code in the config.

- run: mkdir -p /tmp/test-results/go-test

  - run: go test $(go list ./... | circleci tests split --split-by=timings) 2>&1 | go-junit-report > /tmp/test-results/go-test/results.xml
  - store_test_results:
      path: /tmp/test-results/

Thoughts?

Worth noting that in my “Uploading test results” section (store_test_results) the output says:

Archiving the following test results

  • /tmp/test-results/go-test/results.xml
    Uploaded

Which leads me to believe that the file is being properly uploaded.

Disregard. Seems this was a result of how go-junit-report was formatting the file. I replaced it with gotestsum and it works fine. Now to figure out the second part of my problem…

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.