module Test::Unit::TestResultErrorSupport

def add_error(error)

Records a Test::Unit::Error.
def add_error(error)
  @errors << error
  notify_fault(error)
  notify_changed
end

def error_count

recorded.
Returns the number of errors this TestResult has
def error_count
  @errors.size
end

def error_occurred?

def error_occurred?
  not @errors.empty?
end

def error_summary

def error_summary
  "#{error_count} errors"
end

def initialize_containers

def initialize_containers
  super
  @errors = []
  @summary_generators << :error_summary
  @problem_checkers << :error_occurred?
end