From e4083cacee879bc72069ca0fcd23950f3ae420ec Mon Sep 17 00:00:00 2001 From: Magnus Henoch Date: Tue, 20 Nov 2012 15:50:00 +0000 Subject: Run eunit suites in the order specified in the 'suites' command line parameter Normally, Rebar runs eunit tests in the order the beam files are stored in the file system (see rebar_utils:beams). However, sometimes it is desirable to run the tests in a different order (e.g. to reproduce an error found on a build server). For that case, it would make sense to use the 'suites' parameter not just for selecting which modules to consider, but also for choosing the order. --- src/rebar_eunit.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index b82da0f..fd1a265 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -186,7 +186,7 @@ filter_suites(Config, Modules) -> filter_suites1(Modules, []) -> Modules; filter_suites1(Modules, Suites) -> - [M || M <- Modules, lists:member(M, Suites)]. + [M || M <- Suites, lists:member(M, Modules)]. %% %% == get matching tests == -- cgit v1.1