diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-09-20 00:35:46 -0700 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-09-20 00:35:46 -0700 |
commit | c0a903bbf9b74df01fad71bbf9d267d1aa7cff4c (patch) | |
tree | af64045c93fdde1236c9f5185e24dba6fa584535 | |
parent | fb363cd8de68e9113e407ac0be049cacdd9ddd07 (diff) |
cover compile prior to calculating coverage
fixes #1327
-rw-r--r-- | src/rebar_prv_cover.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index 401c331..968a632 100644 --- a/src/rebar_prv_cover.erl +++ b/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), |