# Splitting go tests by timing in circleci

**URL:** <https://discuss.circleci.com/t/splitting-go-tests-by-timing-in-circleci/34381>\
**Category:** Running Tests\
**Created:** [February 5, 2020, 6:51pm UTC](https://discuss.circleci.com/t/splitting-go-tests-by-timing-in-circleci/34381 "2020-02-05T18:51:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![devblueray](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/devblueray/32/24096_2.png) [@devblueray](https://discuss.circleci.com/u/devblueray)\
**Post date:** [February 5, 2020, 6:51pm UTC](https://discuss.circleci.com/t/splitting-go-tests-by-timing-in-circleci/34381/1 "2020-02-05T18:51:35Z")

</div>

Hi all,

I’m trying to work out how to split tests by timing in circle. I have the following in my config:

`- run: gotestsum --junitfile /tmp/test-results/go-test/$(echo $RANDOM).xml $(go list ./... | circleci tests split --split-by=timings)`

`- store_test_results:`  
`path: /tmp/test-results/`

The thought with the $RANDOM was that since we are splitting the tests and each container writes a new file, that it would read in all the files and combine them when it read the test results on run. That clearly isn’t happening. Does anyone have a good example on how to properly split go tests by timing in circleci?
