瀏覽代碼

Copy all source files for eunit to .eunit directory so that cover works properly (ick!)

Dave Smith 15 年之前
父節點
當前提交
1826e62069
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rebar_eunit.erl

+ 1
- 1
src/rebar_eunit.erl 查看文件

@ -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…
取消
儲存