Skip to content

Commit a169d7b

Browse files
committed
call reporter.prerecord before each test run
1 parent d8e1164 commit a169d7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ruby/lib/minitest/queue.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def flaky?
189189
def current_timestamp
190190
Time.now.to_i
191191
end
192+
193+
attr_reader :runnable, :method_name
192194
end
193195

194196
attr_accessor :queue
@@ -226,6 +228,7 @@ def __run(*args)
226228

227229
def run_from_queue(reporter, *)
228230
queue.poll do |example|
231+
reporter.prerecord(example.runnable, example.method_name)
229232
result = example.run
230233
failed = !(result.passed? || result.skipped?)
231234

0 commit comments

Comments
 (0)