# How to speed up re-running tests?

**URL:** https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894
**Category:** General Usage
**Tags:** testing
**Created:** [December 16, 2024, 4:56pm UTC](https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894 "2024-12-16T16:56:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![KSepetanc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksepetanc/32/10841_2.png) [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)
#### Post date: [December 16, 2024, 4:56pm UTC](https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894/1 "2024-12-16T16:56:16Z")

</div>

Is there a way to trigger precompile for the test without running the test?

Something I could put in setup.jl script so that tests are ready for quick running in test files?

---

<div class="post-metadata">

### Author: ![g-gundam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/g-gundam/32/47593_2.png) [@g-gundam](https://discourse.julialang.org/u/g-gundam)
#### Post date: [December 16, 2024, 5:26pm UTC](https://discourse.julialang.org/t/how-to-speed-up-re-running-tests/123894/2 "2024-12-16T17:26:39Z")

</div>

This is a little bit of a tangent, but I’ve found that if I use TidyTest.jl AND I use its `@run_tests` macro from the regular Julia REPL, I can run tests without recompiling. The author just recently documented how to do this in his README, and it’s kinda nice.

```julia-repl
julia> using TidyTest

julia> cd("test")

julia> @run_tests verbose=true;
Test Summary: | Pass Total Time
ReversedSeries | 4 4 0.0s
  ReversedFrame | 3 3 0.0s
  Reversed | 1 1 0.0s

```

> **[GitHub - dhanak/TidyTest.jl: An \`AbstractTestSet\` implementation and a helper...](https://github.com/dhanak/TidyTest.jl?tab=readme-ov-file#running-from-the-repl)**
>
> An \`AbstractTestSet\` implementation and a helper macro for test execution with auto discovery and a neater test summary.
