summaryrefslogtreecommitdiff
path: root/test/rebar_cover_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/rebar_cover_SUITE.erl')
-rw-r--r--test/rebar_cover_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/rebar_cover_SUITE.erl b/test/rebar_cover_SUITE.erl
index 84723ff..4192f4a 100644
--- a/test/rebar_cover_SUITE.erl
+++ b/test/rebar_cover_SUITE.erl
@@ -247,5 +247,6 @@ coverdata_is_reset_on_write(Config) ->
["eunit"],
{ok, [{app, Name}]}),
- {result, Ok, []} = cover:analyse(cover:modules()),
+ Res = lists:map(fun(M) -> cover:analyse(M) end, cover:modules()),
+ Ok = lists:foldl(fun({ok, R}, Acc) -> R ++ Acc end, [], Res),
[] = lists:filter(fun({_, {0,_}}) -> false; (_) -> true end, Ok).