]> granicus.if.org Git - ejabberd/commitdiff
Support flagging so Elixir tests as pending
authorMickael Remond <mremond@process-one.net>
Wed, 30 Mar 2016 11:59:01 +0000 (13:59 +0200)
committerMickael Remond <mremond@process-one.net>
Wed, 30 Mar 2016 11:59:01 +0000 (13:59 +0200)
test/elixir_SUITE.erl

index b9a0b1a231101f4b42bfe48908a946d36b2e7840..041d0603e4247a717b24375e42be8cc23627ae03 100644 (file)
@@ -65,7 +65,9 @@ undefined_function(Module, Func, Args) ->
     error_handler:undefined_function(Module, Func,Args).
 
 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)))),
     %% I did not use map syntax, so that this file can still be build under R16
     ResultMap = 'Elixir.ExUnit':run(),