diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2016-08-27 13:50:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-27 13:50:59 -0700 |
commit | c0b5f7f921bed20c65f64b25e3ea2e59095bc05e (patch) | |
tree | ebe507a3b839398660cf688f1b529c6f399a1a4d /src | |
parent | 4347f48e7fc7f0939b37fe984f1286f332735630 (diff) | |
parent | 3beeec9db0880c5e9f57a427796d9d9af9ffa46d (diff) |
Merge pull request #1316 from erlang/reset_coverdata
reset accumulated coverdata on writing out to disk
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_cover.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index 7c2597b..401c331 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -376,6 +376,8 @@ write_coverdata(State, Task) -> ExportFile = filename:join([DataDir, atom_to_list(Task) ++ ".coverdata"]), case cover:export(ExportFile) of ok -> + %% dump accumulated coverdata after writing + ok = cover:reset(), ?DEBUG("Cover data written to ~p.", [ExportFile]); {error, Reason} -> ?WARN("Cover data export failed: ~p", [Reason]) |