Class Test::Unit::TestResult
In: lib/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

Included Modules

Util::Observable NullResultContainerInitializer TestResultFailureSupport TestResultErrorSupport TestResultPendingSupport TestResultOmissionSupport TestResultNotificationSupport

Constants

FINISHED = name + "::FINISHED"
CHANGED = name + "::CHANGED"
PASS_ASSERTION = name + "::PASS_ASSERTION"
FAULT = name + "::FAULT"

Attributes

assertion_count  [R] 
faults  [R] 
pass_count  [R] 
run_count  [R] 

Public Class methods

Constructs a new, empty TestResult.

Public Instance methods

Records an individual assertion.

Records a test run.

Returns whether or not this TestResult represents successful completion.

Returnes a string that shows result status.

Returns a string contain the recorded runs, assertions, failures and errors in this TestResult.

[Validate]