Method: ActiveSupport::Testing::Parallelization::Worker#perform_job

Defined in:
lib/active_support/testing/parallelization/worker.rb

#perform_job(job) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/active_support/testing/parallelization/worker.rb', line 42

def perform_job(job)
  klass    = job[0]
  method   = job[1]
  reporter = job[2]

  set_process_title("#{klass}##{method}")

  result = klass.with_info_handler reporter do
    Minitest.run_one_method(klass, method)
  end

  safe_record(reporter, result)
end