Swap DEV_ONLY for TEST in the test exclusion macros

This commit is contained in:
Eric Merritt 2015-09-07 10:45:58 -07:00
parent fbf7f7951c
commit 739a9bcf24
8 changed files with 8 additions and 8 deletions

View file

@ -243,7 +243,7 @@ term_capabilities(_) -> full. %% Default to the backwards compatible version.
%%% Test Functions %%% Test Functions
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
should_test() -> should_test() ->

View file

@ -217,7 +217,7 @@ to_atom(X) ->
%%% Tests %%% Tests
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
to_integer_test() -> to_integer_test() ->

View file

@ -694,7 +694,7 @@ ltoi(X) ->
%%% Tests %%% Tests
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").

View file

@ -325,7 +325,7 @@ sub_files(From) ->
%%% Test Functions %%% Test Functions
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
setup_test() -> setup_test() ->

View file

@ -141,7 +141,7 @@ keys(Data) ->
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
%% For me unit testing initially is about covering the obvious case. A %% For me unit testing initially is about covering the obvious case. A

View file

@ -68,7 +68,7 @@ fetch(Fun, List) when is_list(List), is_function(Fun) ->
%%% Test Functions %%% Test Functions
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
find1_test() -> find1_test() ->

View file

@ -314,7 +314,7 @@ internal_pes(Vsn, LVsn) ->
%%% Test Functions %%% Test Functions
%%%=================================================================== %%%===================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
eql_test() -> eql_test() ->

View file

@ -200,7 +200,7 @@ get_string(String) ->
%%%==================================================================== %%%====================================================================
%%% tests %%% tests
%%%==================================================================== %%%====================================================================
-ifdef(DEV_ONLY). -ifdef(TEST).
-include_lib("eunit/include/eunit.hrl"). -include_lib("eunit/include/eunit.hrl").
general_test_() -> general_test_() ->