Skip to content

Tests not launching in descending runtime order #139

Description

@christiangnrd

It seems to be as of #119.

To check, I applied the patch below to #119, noted that the first job wasn't the top of the list, then I applied the patch to the previous commit (also v2.5.1), and the order is properly followed.

cc @giordano

diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl
index 141c746..e37a7c1 100644
--- a/src/ParallelTestRunner.jl
+++ b/src/ParallelTestRunner.jl
@@ -945,6 +945,13 @@ function runtests(mod::Module, args::ParsedArgs;
     historical_durations = load_test_history(mod)
     sort!(tests, by = x -> -get(historical_durations, x, Inf))

+    if !isnothing(args.verbose)
+        max_width = maximum(length, tests)
+        for key in tests
+            println(stdout, " - $(lpad(key, max_width)): $(get(historical_durations, key, 0.0))s")
+        end
+    end
+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions