@@ -181,22 +181,22 @@ defmodule ExUnit.Runner do
181181 end
182182
183183 defp exec_module_setup ( % ExUnit.TestModule { name: module } = test_module ) do
184- { :ok , test_module , module . __ex_unit__ ( :setup_all , % { module: module } ) }
184+ { :ok , test_module , module . __ex_unit__ ( :setup_all , % { module: module , case: module } ) }
185185 catch
186186 kind , error ->
187187 failed = failed ( kind , error , pruned_stacktrace ( ) )
188188 { :error , % { test_module | state: failed } }
189189 end
190190
191- defp run_test ( true , config , test , context ) do
192- run_test ( [ ] , config , test , context )
191+ defp run_test_with_capture_log ( true , config , test , context ) do
192+ run_test_with_capture_log ( [ ] , config , test , context )
193193 end
194194
195- defp run_test ( false , config , test , context ) do
195+ defp run_test_with_capture_log ( false , config , test , context ) do
196196 spawn_test ( config , test , context )
197197 end
198198
199- defp run_test ( opts , config , test , context ) do
199+ defp run_test_with_capture_log ( opts , config , test , context ) do
200200 ref = make_ref ( )
201201
202202 try do
@@ -224,7 +224,7 @@ defmodule ExUnit.Runner do
224224 test =
225225 if is_nil ( test . state ) do
226226 capture_log? = Map . get ( tags , :capture_log , config . capture_log )
227- run_test ( capture_log? , config , test , Map . merge ( tags , context ) )
227+ run_test_with_capture_log ( capture_log? , config , test , Map . merge ( tags , context ) )
228228 else
229229 test
230230 end
0 commit comments