diff options
author | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-03-25 06:38:00 -0700 |
---|---|---|
committer | alisdair sullivan <alisdairsullivan@yahoo.ca> | 2015-03-25 06:38:00 -0700 |
commit | 945543da19facd2dc7d9284a2df3e934f28800db (patch) | |
tree | a3dc7dce03ad397c092635c854073f5ed42e706e /src | |
parent | 61455c04d01b07aa9a12368091259bbb840e836a (diff) |
execute `cover` task as `test` profile and write generated data
to the appropriate `_build` dir
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_prv_cover.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index d6e18dc..45d5b81 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -29,7 +29,8 @@ init(State) -> {example, "rebar3 cover"}, {short_desc, "Perform coverage analysis."}, {desc, ""}, - {opts, cover_opts(State)}])), + {opts, cover_opts(State)}, + {profiles, [test]}])), {ok, State1}. -spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}. @@ -333,7 +334,8 @@ verbose(State) -> end. cover_dir(State) -> - rebar_state:get(State, cover_data_dir, filename:join(["_build", "cover"])). + rebar_state:get(State, cover_data_dir, filename:join([rebar_dir:base_dir(State), + "cover"])). cover_opts(_State) -> [{reset, $r, "reset", boolean, help(reset)}, |