ソースを参照

Fix eunit regression (reported-by Alexander Dorofeev)

pull/3/head
Andrew Thompson 14年前
committed by Tuncer Ayaz
コミット
2e654513dd
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      src/rebar_eunit.erl

+ 4
- 1
src/rebar_eunit.erl ファイルの表示

@ -247,7 +247,10 @@ cover_analyze(Config, Modules, SrcModules) ->
%% suite can be a comma seperated list of modules to test %% suite can be a comma seperated list of modules to test
Suite = [list_to_atom(S) || Suite = [list_to_atom(S) ||
S <- string:tokens(rebar_config:get_global(suite, ""), ",")], S <- string:tokens(rebar_config:get_global(suite, ""), ",")],
FilteredModules = [M || M <- Modules, lists:member(M, Suite)],
FilteredModules = case Suite of
[] -> Modules;
_ -> [M || M <- Modules, lists:member(M, Suite)]
end,
%% Generate coverage info for all the cover-compiled modules %% Generate coverage info for all the cover-compiled modules
Coverage = [cover_analyze_mod(M) || M <- FilteredModules], Coverage = [cover_analyze_mod(M) || M <- FilteredModules],

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