-module(demo_tests).
-include_lib("eunit/include/eunit.hrl").
timeout_setup_test_() ->
{setup,
fun() -> ok end,
fun(_) -> ok end,
{timeout,20,
fun() -> ok = demo:a() end}}.
-module(demo_tests).
-include_lib("eunit/include/eunit.hrl").
timeout_setup_test_() ->
{setup,
fun() -> ok end,
fun(_) -> ok end,
{timeout,20,
fun() -> ok = demo:a() end}}.
erlc *.erl
erl
eunit:test(demo).
> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
-module(demo).
-export([a/0]).
a() ->
timer:sleep(10000),
ok.
It's really great to have such a helpful and active community - very
much appreciated!
Regards,
Bryan