diff options
Diffstat (limited to 'test/rebar_profiles_SUITE.erl')
-rw-r--r-- | test/rebar_profiles_SUITE.erl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/rebar_profiles_SUITE.erl b/test/rebar_profiles_SUITE.erl index a31a4c9..fb7b140 100644 --- a/test/rebar_profiles_SUITE.erl +++ b/test/rebar_profiles_SUITE.erl @@ -377,7 +377,8 @@ test_profile_applied_at_completion(Config) -> [App] = rebar_state:project_apps(State), ErlOpts = rebar_app_info:get(App, erl_opts), - true = lists:member({d, 'TEST'}, ErlOpts). + true = lists:member({d, 'TEST'}, ErlOpts), + true = lists:member({d, 'EUNIT'}, ErlOpts). test_profile_applied_before_compile(Config) -> AppDir = ?config(apps, Config), @@ -393,7 +394,9 @@ test_profile_applied_before_compile(Config) -> code:add_paths(rebar_state:code_paths(State, all_deps)), S = list_to_atom("not_a_real_src_" ++ Name), - true = lists:member({d, 'TEST'}, proplists:get_value(options, S:module_info(compile), [])). + Opts = proplists:get_value(options, S:module_info(compile), []), + true = lists:member({d, 'TEST'}, Opts), + true = lists:member({d, 'EUNIT'}, Opts). test_profile_applied_before_eunit(Config) -> AppDir = ?config(apps, Config), @@ -409,7 +412,9 @@ test_profile_applied_before_eunit(Config) -> code:add_paths(rebar_state:code_paths(State, all_deps)), T = list_to_atom("not_a_real_src_" ++ Name ++ "_tests"), - true = lists:member({d, 'TEST'}, proplists:get_value(options, T:module_info(compile), [])). + Opts = proplists:get_value(options, T:module_info(compile), []), + true = lists:member({d, 'TEST'}, Opts), + true = lists:member({d, 'EUNIT'}, Opts). test_profile_applied_to_apps(Config) -> AppDir = ?config(apps, Config), @@ -430,5 +435,6 @@ test_profile_applied_to_apps(Config) -> lists:foreach(fun(App) -> Opts = rebar_app_info:opts(App), ErlOpts = dict:fetch(erl_opts, Opts), - true = lists:member({d, 'TEST'}, ErlOpts) + true = lists:member({d, 'TEST'}, ErlOpts), + true = lists:member({d, 'EUNIT'}, ErlOpts) end, Apps). |