JuliaTesting / ReTest.jl

Testing framework for Julia
Other
111 stars 6 forks source link

print testset name while waiting for results? #38

Open ericphanson opened 3 years ago

ericphanson commented 3 years ago

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.

rfourquet commented 2 years ago

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.