Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print testset name while waiting for results? #38

Open
ericphanson opened this issue Sep 17, 2021 · 1 comment
Open

print testset name while waiting for results? #38

ericphanson opened this issue Sep 17, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ericphanson
Copy link

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
Copy link
Collaborator

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 rfourquet added enhancement New feature or request good first issue Good for newcomers labels Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants