diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-12-04 15:46:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-04 15:46:17 -0500 |
commit | 4b5a66ff65b304ea4b3b80058a4819cfc1c72fc4 (patch) | |
tree | 954440e8344ed8ad53ab92cf9cde6266ae4c7595 /src/rebar_prv_cover.erl | |
parent | f81f144f38f51efd9ab2d312b1a61dc464fd4738 (diff) | |
parent | 72b649cc664747d7682eec7150f6ad022b3838ae (diff) |
Merge pull request #1684 from tsloughter/cover-export
add eunit and ct option to set coverdata file name
Diffstat (limited to 'src/rebar_prv_cover.erl')
-rw-r--r-- | src/rebar_prv_cover.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index c890452..2345b18 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -372,10 +372,10 @@ redirect_cover_output(State, CoverPid) -> [append]), group_leader(F, CoverPid). -write_coverdata(State, Task) -> +write_coverdata(State, Name) -> DataDir = cover_dir(State), ok = filelib:ensure_dir(filename:join([DataDir, "dummy.log"])), - ExportFile = filename:join([DataDir, atom_to_list(Task) ++ ".coverdata"]), + ExportFile = filename:join([DataDir, rebar_utils:to_list(Name) ++ ".coverdata"]), case cover:export(ExportFile) of ok -> %% dump accumulated coverdata after writing |