diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-05-03 09:45:21 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-05-03 09:45:21 -0600 |
commit | 1826e620690a4128f157574ad2051daf49bb857d (patch) | |
tree | 12690749d2e2e66bdfcb989bebfaf4d64b1e30ff /src | |
parent | 914e5fbf68fc87077af4da90d006c12892f59084 (diff) |
Copy all source files for eunit to .eunit directory so that cover works properly (ick!)
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_eunit.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 3fd68a4..aca68fe 100644 --- a/src/rebar_eunit.erl +++ b/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 |