Make ExUnit exit happen in two steps.

This allows developers to hook custom mechanisms
after the tests are run but before the system halts.
This commit is contained in:
José Valim
2012-11-28 11:57:38 +01:00
parent 401ad781c3
commit 956773ee7e
3 changed files with 16 additions and 5 deletions
+3
View File
@@ -47,6 +47,9 @@ handle_call(loaded, _From, Config) ->
handle_call(at_exit, _From, Config) ->
{ reply, Config#elixir_code_server.at_exit, Config };
handle_call(flush_at_exit, _From, Config) ->
{ reply, Config#elixir_code_server.at_exit, Config#elixir_code_server{at_exit=[]} };
handle_call(argv, _From, Config) ->
{ reply, Config#elixir_code_server.argv, Config };