 
         case exec_module_setup(test_module) do
           {:ok, test_module, context} ->
-            Enum.each tests, &run_test(config, &1, context)
-            send parent, {self(), :module_finished, test_module, []}
+            Enum.each(tests, &run_test(config, &1, context))
+            send(parent, {self(), :module_finished, test_module, []})
 
           {:error, test_module} ->
-            failed_tests = Enum.map tests, & %{&1 | state: {:invalid, test_module}}
-            send parent, {self(), :module_finished, test_module, failed_tests}
+            failed_tests = Enum.map(tests, &%{&1 | state: {:invalid, test_module}})
+            send(parent, {self(), :module_finished, test_module, failed_tests})
         end
 
         exit(:shutdown)


  defp run_test(opts, config, test, context) do
    ref = make_ref()
    try do
      ExUnit.CaptureLog.capture_log(opts, fn ->
        send self(), {ref, spawn_test(config, test, context)}
      end)
    catch
      :exit, :noproc ->
        message =
          "could not run test, it uses @tag :capture_log" <>
          " but the :logger application is not running"
        %{test | state: failed(:error, RuntimeError.exception(message), [])}
    else
      logged ->

        {^module_pid, :module_finished, test_module, tests} ->
          Process.demonitor(module_ref, [:flush])
          {test_module, tests}

        {:DOWN, ^module_ref, :process, ^module_pid, error} ->
          test_module = %{test_module | state: failed({:EXIT, module_pid}, error, [])}
          {test_module, []}
