Method: ActiveSupport::Testing::Isolation#run

Defined in:
activesupport/lib/active_support/testing/isolation.rb

#runObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'activesupport/lib/active_support/testing/isolation.rb', line 20

def run
  status, serialized = run_in_isolation do
    super
  end

  unless status&.success?
    error = SubprocessCrashed.new("Subprocess exited with an error: #{status.inspect}\noutput: #{serialized.inspect}")
    error.set_backtrace(caller)
    self.failures << Minitest::UnexpectedError.new(error)
    return defined?(Minitest::Result) ? Minitest::Result.from(self) : dup
  end

  Marshal.load(serialized)
end