diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-07 14:02:13 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-08-07 14:02:13 +0200 |
commit | fdc1425a3bf5539a284d829ac35ed734a3c68959 (patch) | |
tree | e280b481451947f2e78a80b25083111662c47d56 /src | |
parent | 19ef152ddf8a41fdde932cf42965b628ba8f06e2 (diff) |
Use rebar_utils:test_dir/0 for coverdata export file
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_eunit.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 289ae3d..80c13f6 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -397,9 +397,7 @@ cover_file(Module) -> filename:join([?TEST_DIR, atom_to_list(Module) ++ ".COVER.html"]). cover_export_coverdata() -> - ExportFile = filename:join([rebar_utils:get_cwd(), - ?TEST_DIR, - "eunit.coverdata"]), + ExportFile = filename:join(rebar_utils:test_dir(), "eunit.coverdata"), case cover:export(ExportFile) of ok -> ?CONSOLE("Coverdata export: ~s~n", [ExportFile]); |