# Feature Request: Keep test results for intermediate runs

**URL:** https://discourse.cmake.org/t/feature-request-keep-test-results-for-intermediate-runs/14074
**Category:** Development
**Created:** [May 9, 2025, 8:29pm UTC](https://discourse.cmake.org/t/feature-request-keep-test-results-for-intermediate-runs/14074 "2025-05-09T20:29:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kwasi\_Mensah](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kwasi_mensah/32/5557_2.png) [@Kwasi\_Mensah](https://discourse.cmake.org/u/Kwasi_Mensah)
#### Post date: [May 9, 2025, 8:29pm UTC](https://discourse.cmake.org/t/feature-request-keep-test-results-for-intermediate-runs/14074/1 "2025-05-09T20:29:04Z")

</div>

I want to set up retries to help a CI system be more resilient to flaky tests but I also want to still gather information about the flakes to investigate them async. Unfortunately the code at [CMake/Source/CTest/cmCTestRunTest.cxx at 432d51a926f4a6112f096314b47484b72a1942a0 · Kitware/CMake · GitHub](https://github.com/Kitware/CMake/blob/432d51a926f4a6112f096314b47484b72a1942a0/Source/CTest/cmCTestRunTest.cxx#L374) only keeps track of the test result of the last run of a test and this seems to be what’s captured in --output-junit. It would be great if there was a flag that allowes us to keep information about all intermediate test results.
