Such callbacks are invoked after each process is spawned. This commit also refactors ExUnit.Runner slightly to consume information from ExUnit.Server gradually instead of retrieving it all up-front. This small step allows us to have ExUnit running in the background in the future or to run many suites at once.
10 lines
204 B
Elixir
10 lines
204 B
Elixir
Code.require_file "../test_helper.exs", __FILE__
|
|
|
|
defmodule ExUnitTest do
|
|
use ExUnit.Case, async: false
|
|
|
|
test "it runs after_spawn hooks" do
|
|
assert Process.get(:after_spawn) == :ex_unit
|
|
end
|
|
end
|