Records a Test::Unit::Error.
# File test-unit-3.3.7/lib/test/unit/error.rb, line 129 def add_error(error) @errors << error notify_fault(error) notify_changed end
Returns the number of errors this TestResult has recorded.
# File test-unit-3.3.7/lib/test/unit/error.rb, line 137 def error_count @errors.size end