瀏覽代碼

Remove modules that fail coverage from the list

pull/3/head
Jon Meredith 13 年之前
committed by Tuncer Ayaz
父節點
當前提交
5775746758
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      src/rebar_eunit.erl

+ 4
- 4
src/rebar_eunit.erl 查看文件

@ -281,7 +281,7 @@ cover_analyze(Config, Modules, SrcModules) ->
end,
%% Generate coverage info for all the cover-compiled modules
Coverage = [cover_analyze_mod(M) || M <- FilteredModules],
Coverage = lists:flatten([cover_analyze_mod(M) || M <- FilteredModules]),
%% Write index of coverage info
cover_write_index(lists:sort(Coverage), SrcModules),
@ -364,12 +364,12 @@ cover_analyze_mod(Module) ->
%% test/0 fun, which cover considers a runnable line, but
%% eunit:test(TestRepresentation) never calls. Decrement
%% NotCovered in this case.
align_notcovered_count(Module, Covered, NotCovered,
is_eunitized(Module));
[align_notcovered_count(Module, Covered, NotCovered,
is_eunitized(Module))];
{error, Reason} ->
?ERROR("Cover analyze failed for ~p: ~p ~p\n",
[Module, Reason, code:which(Module)]),
{0,0}
[]
end.
is_eunitized(Mod) ->

Loading…
取消
儲存