diff options
author | Joseph Wayne Norton <norton@alum.mit.edu> | 2010-12-16 16:14:08 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-02-13 16:26:48 +0100 |
commit | e4cd50e2a356702dca433dc23510b5170de860f2 (patch) | |
tree | 4a00d91973dd17abeced639ea75fc2aad69c501e /src | |
parent | 3241165ced709246935701f0b638d759e54316a2 (diff) |
Add eunit_first_files option
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_eunit.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 01fb805..4790869 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -189,7 +189,10 @@ eunit_config(Config) -> EunitOpts = rebar_config:get_list(Config, eunit_compile_opts, []), Opts = [{d, 'TEST'}, debug_info] ++ ErlOpts ++ EunitOpts ++ EqcOpts, - rebar_config:set(Config, erl_opts, Opts). + Config1 = rebar_config:set(Config, erl_opts, Opts), + + FirstErls = rebar_config:get_list(Config1, eunit_first_files, []), + rebar_config:set(Config1, erl_first_files, FirstErls). is_quickcheck_avail() -> case erlang:get(is_quickcheck_avail) of |