module Test::Unit::TestResultFailureSupport

Attributes

failures[R]

Public Instance Methods

add_failure(failure) click to toggle source

Records a Test::Unit::Failure.

# File test-unit-3.5.3/lib/test/unit/failure.rb, line 140
def add_failure(failure)
  @failures << failure
  notify_fault(failure)
  notify_changed
end
failure_count() click to toggle source

Returns the number of failures this TestResult has recorded.

# File test-unit-3.5.3/lib/test/unit/failure.rb, line 148
def failure_count
  @failures.size
end
failure_occurred?() click to toggle source
# File test-unit-3.5.3/lib/test/unit/failure.rb, line 152
def failure_occurred?
  not @failures.empty?
end