소스 검색

Copy src files to .eunit so that cover can always find them

Jeremy Raymond 15 년 전
부모
커밋
87bca27644
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      src/rebar_eunit.erl

+ 6
- 0
src/rebar_eunit.erl 파일 보기

@ -63,6 +63,12 @@ eunit(Config, _File) ->
%% {eunit_compile_opts, [{src_dirs, ["test"]}]}
TestErls = rebar_utils:find_files("test", ".*\\.erl\$"),
%% Copy source files to eunit dir for cover in case they are not directly
%% 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),
%% Compile erlang code to ?EUNIT_DIR, using a tweaked config
%% with appropriate defines for eunit, and include all the test modules
%% as well.

불러오는 중...
취소
저장