# Test split by timing-data does not find

**URL:** <https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375>\
**Category:** Running Tests\
**Tags:** golang\
**Created:** [June 6, 2025, 8:29am UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375 "2025-06-06T08:29:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsgndln](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsgndln/32/36438_2.png) [@lsgndln](https://discuss.circleci.com/u/lsgndln)\
**Post date:** [June 6, 2025, 8:30am UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/1 "2025-06-06T08:30:00Z")

</div>

Hey! We recently tried the test splitting technique, and wanted to split them by timing-data. This does not seem to work with our setup. I’ll try to provide as much info as possible below.

- Test split works fine if we use any other technique than `split-by=timings`
- Test results are uploaded correctly
- We use test suites (“[github.com/stretchr/testify/suite](http://github.com/stretchr/testify/suite)”), and I suspect is the output of the test results that is causing problems.

I tried to see similar topics and people seem to have issues with “nested” tests. Thanks for the help 🙂

```auto

            go list ./... | circleci tests run --command "xargs gotestsum --junitfile test-results/server.xml --format testname --" --split-by=timings --timings-type=file
      - store_test_results:
          path: test-results

```

---

<div class="post-metadata">

**Author:** ![lsgndln](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsgndln/32/36438_2.png) [@lsgndln](https://discuss.circleci.com/u/lsgndln)\
**Post date:** [June 6, 2025, 8:32am UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/2 "2025-06-06T08:32:38Z")

</div>

The issue is that we get this error : `No timing found for ....`

---

<div class="post-metadata">

**Author:** ![wyardley](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/wyardley/32/19231_2.png) [@wyardley](https://discuss.circleci.com/u/wyardley)\
**Post date:** [June 11, 2025, 9:51pm UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/3 "2025-06-11T21:51:18Z")

</div>

- Do you get that error on every file / test and on every run?
- Do the test results you’re saving include filenames? IIRC, a lot of problems with test splitting on timing relates to not having the filename in the junit style output. I would double-check that everything lines up with the exact format mentioned [here](https://circleci.com/docs/parallelism-faster-jobs/#junit-xml-reports).
- Semi-related: could also see if adjusting `--timings-type` changes the situation? ([Test splitting and parallelism - CircleCI](https://circleci.com/docs/parallelism-faster-jobs/))

---

<div class="post-metadata">

**Author:** ![lsgndln](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsgndln/32/36438_2.png) [@lsgndln](https://discuss.circleci.com/u/lsgndln)\
**Post date:** [June 12, 2025, 8:29am UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/4 "2025-06-12T08:29:15Z")

</div>

Hello, thanks for helping.

**Do you get that error on every file / test and on every run?**

- yes

**Do the test results you’re saving include filenames?**  
Here is a [link to one output](https://circleci-tasks-prod.s3.us-east-1.amazonaws.com/storage/artifacts/489e0759-ef84-4ee8-864f-ebf3d643000d/d78c5394-65a7-4498-89f6-63e27adea462/0/test-results/server.xml?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Checksum-Mode=ENABLED&X-Amz-Credential=ASIAQVFQINEOBWSLTDZF%2F20250612%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250612T082639Z&X-Amz-Expires=60&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEBEaCXVzLWVhc3QtMSJGMEQCIAG6FmujqF2ug84s8VhXOER%2BR08poQi2Hha35EQfsxyiAiBTm9Dq7BXz5%2Bu1MJ9vK6XvCG7gUqMpVduiKso92P7YIiq0Agjp%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAMaDDA0NTQ2NjgwNjU1NiIMliMFVIXIJ%2FFirLF9KogC8ZxSkrJciw%2Byt0S9QUR1gwYj%2BYm6UlVWqF%2B2xHmfI6u2Bm0JzaD6iONJZ2nNAqcoORkK3xTk6WyveZtWJ0DhMjf%2BrnL1MI%2FiPWl05D3HRfmLWwhvCwGbrf%2Fbup%2F8CWVQRmw%2Bs3re7dnXfjuHv5Epcst70%2FsPSK6nxm6qHHr1zEP53aaQW48Wnj%2Btn68x%2FrgehBUCwox8HLQOdD1vfTq3r0897S8sxJSPTwZRFSJADqM%2BNTcstgY0m4uTN3xmTSkre%2F2WCksXm3g0akyaJNDJTF3OsuEmJ0M5o33YDKzJc5CjTfU5rfHWlVTMoLoqgHFZSU7l%2BAHNgVkMOA5%2BtrrxIQ4b%2FNs1Sz%2BFMOCaqsIGOp4B6K5%2BwA2h24Z5SkCzfy8EVYV9%2FufN4CItSaiS6qaLmZJ2UFoAN35QjLFHMrJ5B1Lk4dcLqLVAtneCcj2s6kwwr1ubkaFqYqukVr6Wn9f%2FOnuAh8GxVcpd2RB77Qpzgr423Xu9TCZd5ARp9tQJeoJA0OVFbB%2BGEO1pj6%2BYjNKCjviHh8FleoSLs1GSR%2BU3W%2B06OWaIpJS6Mz%2BIC9td7tE%3D&X-Amz-SignedHeaders=host&x-id=GetObject&X-Amz-Signature=62d3adbaa47dcb449420255f3a00fc58bb454a2ffd326df95ac122d4699f35e3). Looks like there is package name but not the file name. I’ll try to fix that.

**Semi-related: could also see if adjusting `--timings-type` changes the situation?**  
I tried already all of them, without success 😕

Thank you  
Louis

---

<div class="post-metadata">

**Author:** ![lsgndln](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/lsgndln/32/36438_2.png) [@lsgndln](https://discuss.circleci.com/u/lsgndln)\
**Post date:** [June 12, 2025, 10:02am UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/5 "2025-06-12T10:02:56Z")

</div>

So yeah I have search the internet to see how to include the `file` attribute that is indeed missing, but no luck. I am running the exact same command as is in the documentation (I tried with `gotestsum` and also just normal go test)

Do you have some idea ?

---

<div class="post-metadata">

**Author:** ![wyardley](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/wyardley/32/19231_2.png) [@wyardley](https://discuss.circleci.com/u/wyardley)\
**Post date:** [June 12, 2025, 5:30pm UTC](https://discuss.circleci.com/t/test-split-by-timing-data-does-not-find/53375/6 "2025-06-12T17:30:09Z")

</div>

Not sure. This GH issue has some stuff that might be worth trying:

> <https://github.com/gotestyourself/gotestsum/issues/264>
>
> Hi,
> 
> CircleCI allows to split tests by timings using a JUnit XML report. Unfo…rtunately it requires \`testcase\` to have an \`file\` attribute in order to properly work as detailed in this \[CircleCI forum question\](https://discuss.circleci.com/t/split-by-timings-on-elixir-project-fails-to-find-stored-timings-possibly-missing-file-names-in-junit-xml/34813). I have confirmed it by manipulating the JUnit XML report output of \`gotestsum\`. I understand that \`file\` is not part of the JUnit XSD but it would really help if it could be added to the output if the user wanted it. What are your thoughts?
