-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Run fast/slow tests first #905
Comments
Hi there -- This would be awesome to have, the only issue is that we don't record previous test runs at the moment. There's some design work that needs to happen to support that. |
#958 is about running the slowest tests first, which is something that would also be useful. |
In the process of implementing this, would it be possible to publicly expose the ability to dump the execution statistics that nextest displays during execution in a machine-friendly format ? I'd like to have that data sorted by decreasing time as a kind of execution profile to know which tests I should optimize first. |
@HadrienG2 I think that would be part of #20 if I'm understanding you correctly. |
Probably, I was just thinking that implementing this feature requires persistifying exactly the data I want ;) |
Since #1152 has started progressing a little, can we get some guidence as for what's the next blocker for this? 😶 |
As a stop-gap, would it be possible to run tests in random order? |
We tried that: But not really: nextest/nextest-runner/src/list/test_list.rs Line 635 in a4490cd
|
Hello!
I'd like the queue of tests to run to be ordered by the time each took last time
nextest
was run. It's a simple and weak heuristic with little impact on the call.Maybe this can be opt-in with a flag a la
--ordering=fast-first
The text was updated successfully, but these errors were encountered: