Nick Tierney<p>Alrighty I feel like I've run into this <a href="https://aus.social/tags/rstats" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rstats</span></a> <a href="https://aus.social/tags/unittesting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unittesting</span></a> issue many times, and each time I get confused.</p><p>In testthat - I want to be able to keep a log of the tests somewhere so I can look at date/timestamped tests.</p><p>I remember that there's something about special "Reporter" classes or something, but I don't really know what that means, and I can't seem to find examples on the testthat documentation. I could definitely be missing something here - if anyone knows were to look, I'm all ears.</p><p>My question is:</p><p>How do I save the text output from `testthat::test()`?</p><p>I seem to recall that there's some testthat option, but I can't seem to find it here: <a href="https://testthat.r-lib.org/reference/index.html#reporters" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">testthat.r-lib.org/reference/i</span><span class="invisible">ndex.html#reporters</span></a> </p><p>I also can't seem to find much info about Reporters here? <a href="https://testthat.r-lib.org/reference/MinimalReporter.html" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">testthat.r-lib.org/reference/M</span><span class="invisible">inimalReporter.html</span></a> I see that they are mentioned in NEWS: <a href="https://testthat.r-lib.org/news/index.html?q=reporter#reporters-1-0-0" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">testthat.r-lib.org/news/index.</span><span class="invisible">html?q=reporter#reporters-1-0-0</span></a></p><p>Anywho, my usecase is this:</p><p>My tests sometimes 15-20 minutes. I want to check that I'm getting consistent testing behaviour, but after tinkering and fixing, I can't see what the original test failures were. So I need to run them again, and that takes time.</p><p>Yes, I can check GH actions tests, but sometimes those aren't accurate for GH related reasons.</p><p>Has anyone got some thoughts on this?</p><p>I should also note that <span class="h-card"><a href="https://fosstodon.org/@yoni_cd" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>yoni_cd</span></a></span> 's <a href="https://github.com/yonicd/covr" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="">github.com/yonicd/covr</span><span class="invisible"></span></a> package does nearly everything I want, however I have run into some minor issues to do with my pkg that break things.</p>