From 228f39efa19fcd96f299e4509873b91a7447a55f Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Thu, 26 Jul 2012 17:15:01 +0200 Subject: Rename old eunit compile options for consistency with test-compile --- src/rebar_erlc_compiler.erl | 6 +++--- src/rebar_eunit.erl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl index b835053..c6c2d78 100644 --- a/src/rebar_erlc_compiler.erl +++ b/src/rebar_erlc_compiler.erl @@ -117,7 +117,7 @@ clean(_Config, _AppFile) -> test_compile(Config) -> %% Obtain all the test modules for inclusion in the compile stage. %% Notice: this could also be achieved with the following - %% rebar.config option: {eunit_compile_opts, [{src_dirs, ["test"]}]} + %% rebar.config option: {test_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 @@ -171,13 +171,13 @@ test_compile_config(Config) -> {Config3, EqcOpts} = eqc_opts(Config2), ErlOpts = rebar_config:get_list(Config3, erl_opts, []), - EunitOpts = rebar_config:get_list(Config3, eunit_compile_opts, []), + EunitOpts = rebar_config:get_list(Config3, test_compile_opts, []), Opts0 = [{d, 'TEST'}] ++ ErlOpts ++ EunitOpts ++ TriqOpts ++ PropErOpts ++ EqcOpts, Opts = [O || O <- Opts0, O =/= no_debug_info], Config4 = rebar_config:set(Config3, erl_opts, Opts), - FirstErls = rebar_config:get_list(Config4, eunit_first_files, []), + FirstErls = rebar_config:get_list(Config4, test_first_files, []), rebar_config:set(Config4, erl_first_files, FirstErls). triq_opts(Config) -> diff --git a/src/rebar_eunit.erl b/src/rebar_eunit.erl index 18875ab..5dc99dc 100644 --- a/src/rebar_eunit.erl +++ b/src/rebar_eunit.erl @@ -48,7 +48,7 @@ %% Additionally, for projects that have separate folders for the core %% implementation, and for the unit tests, then the following %% rebar.config option can be provided: -%% {eunit_compile_opts, [{src_dirs, ["dir"]}]}.. +%% {test_compile_opts, [{src_dirs, ["dir"]}]}.. %% @copyright 2009, 2010 Dave Smith %% ------------------------------------------------------------------- -module(rebar_eunit). -- cgit v1.1