ReTest.jl icon indicating copy to clipboard operation
ReTest.jl copied to clipboard

print testset name while waiting for results?

Open ericphanson opened this issue 2 years ago • 1 comments

Taking the example from the docs:

julia> retest("greet", verbose=2) # run only tests related to `greet()`
                         Pass
MyPackage:
  greet              |      1

If greet was super slow, you'd get

julia> retest("greet", verbose=2) # run only tests related to `greet()`
                         Pass
MyPackage:

while waiting for greet to finish running. I think it would be nice if instead it showed

julia> retest("greet", verbose=2) # run only tests related to `greet()`
                         Pass
MyPackage:
  greet              |      

so you knew which test was running. (Especially for when you do shuffle=true!). I.e. it could print the testset name while waiting to print the pass.

ericphanson avatar Sep 17 '21 13:09 ericphanson

So this is kinda already implemented, controlled by the spin keyword argument of retest, but this requires typically that Threads.nthreads() > 1. When spin is not active, we could definitely print the test name without the spinner.

rfourquet avatar Nov 09 '21 09:11 rfourquet