Swap DEV_ONLY for TEST in the test exclusion macros
This commit is contained in:
parent
fbf7f7951c
commit
739a9bcf24
8 changed files with 8 additions and 8 deletions
|
@ -243,7 +243,7 @@ term_capabilities(_) -> full. %% Default to the backwards compatible version.
|
|||
%%% Test Functions
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
should_test() ->
|
||||
|
|
|
@ -217,7 +217,7 @@ to_atom(X) ->
|
|||
%%% Tests
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
to_integer_test() ->
|
||||
|
|
|
@ -694,7 +694,7 @@ ltoi(X) ->
|
|||
%%% Tests
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ sub_files(From) ->
|
|||
%%% Test Functions
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
setup_test() ->
|
||||
|
|
|
@ -141,7 +141,7 @@ keys(Data) ->
|
|||
%%%===================================================================
|
||||
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
%% For me unit testing initially is about covering the obvious case. A
|
||||
|
|
|
@ -68,7 +68,7 @@ fetch(Fun, List) when is_list(List), is_function(Fun) ->
|
|||
%%% Test Functions
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
find1_test() ->
|
||||
|
|
|
@ -314,7 +314,7 @@ internal_pes(Vsn, LVsn) ->
|
|||
%%% Test Functions
|
||||
%%%===================================================================
|
||||
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
eql_test() ->
|
||||
|
|
|
@ -200,7 +200,7 @@ get_string(String) ->
|
|||
%%%====================================================================
|
||||
%%% tests
|
||||
%%%====================================================================
|
||||
-ifdef(DEV_ONLY).
|
||||
-ifdef(TEST).
|
||||
-include_lib("eunit/include/eunit.hrl").
|
||||
|
||||
general_test_() ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue