25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Support flagging so Elixir tests as pending

This commit is contained in:
Mickael Remond 2016-03-30 13:59:01 +02:00
parent 82cf7f7ca8
commit 6f25122f8c

View File

@ -65,7 +65,9 @@ undefined_function(Module, Func, Args) ->
error_handler:undefined_function(Module, Func,Args). error_handler:undefined_function(Module, Func,Args).
run_elixir_test(Func) -> run_elixir_test(Func) ->
'Elixir.ExUnit':start([]), %% Elixir tests can be tagged as follow to be ignored (place before test start)
%% @tag pending: true
'Elixir.ExUnit':start([{exclude, [{pending, true}]}]),
'Elixir.Code':load_file(list_to_binary(filename:join(test_dir(), atom_to_list(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 %% I did not use map syntax, so that this file can still be build under R16
ResultMap = 'Elixir.ExUnit':run(), ResultMap = 'Elixir.ExUnit':run(),