Skip to content

Instantly share code, notes, and snippets.

@arcusfelis
Created December 10, 2012 13:04
Show Gist options
  • Select an option

  • Save arcusfelis/4250458 to your computer and use it in GitHub Desktop.

Select an option

Save arcusfelis/4250458 to your computer and use it in GitHub Desktop.
eunit timeout
-module(general_proper_tests).
-include_lib("proper/include/proper.hrl").
-include_lib("eunit/include/eunit.hrl").
some_cool_test_() ->
Properties = lists:filter(fun({F, _}) ->
case atom_to_list(F) of
"prop_" ++ _Rest -> true;
_ -> false
end
end, ?MODULE:module_info(exports)),
Tests = [{timeout, 60, %% 60 sec
fun() ->
timer:sleep(10000) %% 10 sec
end}
|| {P, _} <- Properties],
Tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment