@@ -181,22 +181,22 @@ defmodule ExUnit.Runner do
181
181
end
182
182
183
183
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 } ) }
185
185
catch
186
186
kind , error ->
187
187
failed = failed ( kind , error , pruned_stacktrace ( ) )
188
188
{ :error , % { test_module | state: failed } }
189
189
end
190
190
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 )
193
193
end
194
194
195
- defp run_test ( false , config , test , context ) do
195
+ defp run_test_with_capture_log ( false , config , test , context ) do
196
196
spawn_test ( config , test , context )
197
197
end
198
198
199
- defp run_test ( opts , config , test , context ) do
199
+ defp run_test_with_capture_log ( opts , config , test , context ) do
200
200
ref = make_ref ( )
201
201
202
202
try do
@@ -224,7 +224,7 @@ defmodule ExUnit.Runner do
224
224
test =
225
225
if is_nil ( test . state ) do
226
226
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 ) )
228
228
else
229
229
test
230
230
end
0 commit comments