Class Test::Unit::TestResult
In: test/unit/testresult.rb
Parent: Object
Collects Test::Unit::Failure and Test::Unit::Error so that they can be displayed to the user. To this end, observers can be added to it, allowing the dynamic updating of, say, a UI.
Methods
add_assertion    add_error    add_failure    add_run    error_count    failure_count    new    passed?    to_s   
Attributes
:assertion_count  [R] 
:run_count  [R] 
Included modules
UI::Util::Observable
Public Class methods
new()
Constructs a new, empty TestResult.
Public Instance methods
add_run()
Records a test run.
add_failure(failure)
Records a Test::Unit::Failure.
add_error(error)
Records a Test::Unit::Error.
add_assertion()
Records an individual assertion.
to_s()
Returns a string contain the recorded runs, assertions, failures and errors in this TestResult.
passed?()
Returns whether or not this TestResult represents successful completion.
failure_count()
Returns the number of failures this TestResult has recorded.
error_count()
Returns the number of errors this TestResult has recorded.