File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed
activesupport/lib/active_support/testing/parallelization Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 3
3
source "https://rubygems.org"
4
4
gemspec
5
5
6
- gem "minitest" , ">= 5.15.0"
6
+ gem "minitest"
7
7
8
8
# We need a newish Rake since Active Job sets its test tasks' descriptions.
9
9
gem "rake" , ">= 13"
Original file line number Diff line number Diff line change 348
348
mini_magick (4.12.0 )
349
349
mini_mime (1.1.5 )
350
350
mini_portile2 (2.8.7 )
351
- minitest (5.24.1 )
351
+ minitest (5.25.0 )
352
352
minitest-bisect (1.7.0 )
353
353
minitest-server (~> 1.0 )
354
354
path_expander (~> 1.1 )
@@ -654,7 +654,7 @@ DEPENDENCIES
654
654
libxml-ruby
655
655
listen (~> 3.3 )
656
656
mdl (!= 0.13.0 )
657
- minitest ( >= 5.15.0 )
657
+ minitest
658
658
minitest-bisect
659
659
minitest-ci
660
660
minitest-retry
Original file line number Diff line number Diff line change @@ -46,8 +46,29 @@ def perform_job(job)
46
46
47
47
set_process_title ( "#{ klass } ##{ method } " )
48
48
49
- result = klass . with_info_handler reporter do
50
- Minitest . run_one_method ( klass , method )
49
+ result = nil
50
+
51
+ # TODO: Remove conditional when we support on minitest 5.25+
52
+ if klass . method ( :with_info_handler ) . arity == 2
53
+ t0 = nil
54
+
55
+ handler = lambda do
56
+ unless reporter . passed? then
57
+ warn "Current results:"
58
+ warn reporter . reporters . grep ( SummaryReporter ) . first
59
+ end
60
+
61
+ warn "Current: %s#%s %.2fs" % [ klass , method , Minitest . clock_time - t0 ]
62
+ end
63
+
64
+ result = klass . with_info_handler reporter , handler do
65
+ t0 = Minitest . clock_time
66
+ Minitest . run_one_method ( klass , method )
67
+ end
68
+ else
69
+ result = klass . with_info_handler reporter do
70
+ Minitest . run_one_method ( klass , method )
71
+ end
51
72
end
52
73
53
74
safe_record ( reporter , result )
You can’t perform that action at this time.
0 commit comments