![show/hide quicksearch [+]](../../images/find.png)
Records a Test::Unit::Failure.
 
               # File test-unit-3.3.7/lib/test/unit/failure.rb, line 140
def add_failure(failure)
  @failures << failure
  notify_fault(failure)
  notify_changed
end
             
            Returns the number of failures this TestResult has recorded.
 
               # File test-unit-3.3.7/lib/test/unit/failure.rb, line 148
def failure_count
  @failures.size
end