Browse Source

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.
pull/3/head
Magnus Henoch 12 years ago
parent
commit
e4083cacee
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar_eunit.erl

+ 1
- 1
src/rebar_eunit.erl View File

@ -186,7 +186,7 @@ filter_suites(Config, Modules) ->
filter_suites1(Modules, []) -> filter_suites1(Modules, []) ->
Modules; Modules;
filter_suites1(Modules, Suites) -> filter_suites1(Modules, Suites) ->
[M || M <- Modules, lists:member(M, Suites)].
[M || M <- Suites, lists:member(M, Modules)].
%% %%
%% == get matching tests == %% == get matching tests ==

Loading…
Cancel
Save