Class

TestResult

Extends:

Includes:

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.

Constants
CHANGED
FAULT
Public Attributes
assertion_count
run_count
Public Methods
add_assertion Records an individual assertion.
add_error Records a Test::Unit::Error.
add_failure Records a Test::Unit::Failure.
add_run Records a test run.
error_count Returns the number of errors this TestResult has recorded.
failure_count Returns the number of failures this TestResult has recorded.
new Constructs a new, empty TestResult.
passed? Returns whether or not this TestResult represents successful completion.
to_s Returns a string contain the recorded runs, assertions, failures and errors in this TestResult.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.