瀏覽代碼

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 年之前
父節點
當前提交
e4083cacee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/rebar_eunit.erl

+ 1
- 1
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 ==

Loading…
取消
儲存