From bb144bc830ec34da69eca138dd2612fb75d62e8d Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Thu, 29 Oct 2026 14:53:21 -0400 Subject: [PATCH] test runner: run each module's tests in order; a bare module under inparallel ran its tests concurrently --- test/albedo_test_runner.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/albedo_test_runner.erl b/test/albedo_test_runner.erl index 4c3df4ac..52033f0a 100644 --- a/test/albedo_test_runner.erl +++ b/test/albedo_test_runner.erl @@ -1,6 +1,8 @@ %% gleeunit's runner with every test module started at once, after the timed %% ones. A module's tests keep running in order, one after another, so tests -%% that share a module's fixtures never race each other. There is no cap: +%% that share a module's fixtures never race each other: each module is its own +%% {inorder, _} group, since a bare module under {inparallel, _} inherits that +%% order and runs its tests concurrently too. There is no cap: %% eunit's {inparallel, N, _} runs batches of N and waits out each batch's %% slowest module. -module(albedo_test_runner). @@ -30,7 +32,8 @@ main() -> {report, {gleeunit_progress, [{colored, true}]}}, {scale_timeouts, 10} ], - Result = eunit:test([{inorder, Timed}, {inparallel, Modules -- Timed}], Options), + Result = eunit:test( + [{inorder, Timed}, {inparallel, [{inorder, M} || M <- Modules -- Timed]}], Options), albedo_test_home:cleanup(), erlang:halt(case Result of ok -> 0; _ -> 1 end). -- knotmirror 0.0.1