mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix elixir tests on elixir 1.4
This commit is contained in:
parent
62806607bf
commit
115cb23bd8
@ -85,7 +85,11 @@ undefined_function(Module, Func, Args) ->
|
||||
run_elixir_test(Func) ->
|
||||
%% Elixir tests can be tagged as follow to be ignored (place before test start)
|
||||
%% @tag pending: true
|
||||
'Elixir.ExUnit':start([{exclude, [{pending, true}]}, {formatters, ['Elixir.ExUnit.CLIFormatter', 'Elixir.ExUnit.CTFormatter']}]),
|
||||
'Elixir.ExUnit':start([{exclude, [{pending, true}]},
|
||||
{formatters,
|
||||
['Elixir.ExUnit.CLIFormatter',
|
||||
'Elixir.ExUnit.CTFormatter']},
|
||||
{autorun, false}]),
|
||||
|
||||
filelib:fold_files(test_dir(), ".*mock\.exs\$", true,
|
||||
fun (File, N) ->
|
||||
@ -95,6 +99,7 @@ run_elixir_test(Func) ->
|
||||
|
||||
'Elixir.Code':load_file(list_to_binary(filename:join(test_dir(), atom_to_list(Func)))),
|
||||
%% I did not use map syntax, so that this file can still be build under R16
|
||||
'Elixir.ExUnit.Server':cases_loaded(),
|
||||
ResultMap = 'Elixir.ExUnit':run(),
|
||||
case maps:find(failures, ResultMap) of
|
||||
{ok, 0} ->
|
||||
|
Loading…
Reference in New Issue
Block a user