mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Copy all source files for eunit to .eunit directory so that cover works properly (ick!)
This commit is contained in:
parent
914e5fbf68
commit
1826e62069
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ eunit(Config, _File) ->
|
|||
%% in src but in a subdirectory of src. Cover only looks in cwd and ../src
|
||||
%% for source files.
|
||||
SrcErls = rebar_utils:find_files("src", ".*\\.erl\$"),
|
||||
ok = rebar_file_utils:cp_r(SrcErls, ?EUNIT_DIR),
|
||||
ok = rebar_file_utils:cp_r(SrcErls ++ TestErls, ?EUNIT_DIR),
|
||||
|
||||
%% Compile erlang code to ?EUNIT_DIR, using a tweaked config
|
||||
%% with appropriate defines for eunit, and include all the test modules
|
||||
|
|
Loading…
Reference in a new issue