ソースを参照

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

読み込み中…
キャンセル
保存