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).