Преглед на файлове

cover compile prior to calculating coverage

fixes #1327
pull/1332/head
alisdair sullivan преди 8 години
родител
ревизия
c0a903bbf9
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. +6
    -1
      src/rebar_prv_cover.erl

+ 6
- 1
src/rebar_prv_cover.erl Целия файл

@ -15,7 +15,7 @@
-include("rebar.hrl").
-define(PROVIDER, cover).
-define(DEPS, [app_discovery]).
-define(DEPS, [compile]).
%% ===================================================================
%% Public API
@ -84,6 +84,11 @@ reset(State) ->
{ok, State}.
analyze(State) ->
%% modules have to be cover compiled in order for
%% cover data to be reloaded
%% this maybe breaks if modules have been deleted
%% since code coverage was collected?
ok = cover_compile(State, apps),
?INFO("Performing cover analysis...", []),
%% figure out what coverdata we have
CoverDir = cover_dir(State),

Зареждане…
Отказ
Запис