diff options
author | Richard Carlsson <[email protected]> | 2011-12-11 17:43:28 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2012-08-10 10:57:21 +0200 |
commit | 6f5900f9b136ae9aa6b89877727f6dac9e782ea6 (patch) | |
tree | a8ffccdd058a992e3e19dcba0780cfd7995aac30 /lib/eunit/src/eunit.erl | |
parent | 2c799b1c86308246a0aca04d92f301d45509b951 (diff) | |
download | otp-6f5900f9b136ae9aa6b89877727f6dac9e782ea6.tar.gz otp-6f5900f9b136ae9aa6b89877727f6dac9e782ea6.tar.bz2 otp-6f5900f9b136ae9aa6b89877727f6dac9e782ea6.zip |
Add option 'no_tty' to silent the default tty report
Diffstat (limited to 'lib/eunit/src/eunit.erl')
-rw-r--r-- | lib/eunit/src/eunit.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/eunit/src/eunit.erl b/lib/eunit/src/eunit.erl index 95857e83c8..51846d73b3 100644 --- a/lib/eunit/src/eunit.erl +++ b/lib/eunit/src/eunit.erl @@ -139,7 +139,7 @@ test(Tests, Options) -> %% @private %% @doc See {@link test/2}. test(Server, Tests, Options) -> - Listeners = [eunit_tty:start(Options) | listeners(Options)], + Listeners = listeners(Options), Serial = eunit_serial:start(Listeners), case eunit_server:start_test(Server, Serial, Tests, Options) of {ok, Reference} -> test_run(Reference, Listeners); @@ -194,7 +194,10 @@ submit(Server, T, Options) -> eunit_server:start_test(Server, Dummy, T, Options). listeners(Options) -> - Ps = start_listeners(proplists:get_all_values(report, Options)), + %% note that eunit_tty must always run, because it sends the final + %% {result,...} message that the test_run() function is waiting for + Ls = [{eunit_tty, Options} | proplists:get_all_values(report, Options)], + Ps = start_listeners(Ls), %% the event_log option is for debugging, to view the raw events case proplists:get_value(event_log, Options) of undefined -> |