Skip to content
Snippets Groups Projects
Commit 2b3c10ef authored by Erik Hedenström's avatar Erik Hedenström
Browse files

Merge branch 'master' of gitlab.hedenstroem.com:erlang-ninja/gurka

parents acb50344 a5eec1fe
Branches master
Tags 0.1.8
No related merge requests found
Pipeline #
......@@ -3,3 +3,4 @@ _build
.rebar3
rebar3
rebar.lock
erl_crash.dump
-module(eunit_ide).
-export([test/1, test/2]).
-define(INFINITE_TIMOUT, 31536000). %% 365*24*60*60, a year in seconds
test(Tests) ->
test(Tests, [verbose]).
test(Tests, Options) ->
case lists:keytake(timeout, 1, Options) of
{value, {timeout, infinite}, NewOptions} ->
eunit:test({timeout, ?INFINITE_TIMOUT, Tests}, NewOptions);
{value, {timeout, Timeout}, NewOptions} when is_integer(Timeout) ->
eunit:test({timeout, Timeout, Tests}, NewOptions);
false ->
eunit:test(Tests, Options)
end.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment