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_ |
|
| run_ |
|
| Public Methods | |
|---|---|
| add_ |
Records an individual assertion. |
| add_ |
Records a Test::Unit::Error. |
| add_ |
Records a Test::Unit::Failure. |
| add_ |
Records a test run. |
| error_ |
Returns the number of errors this TestResult has recorded. |
| failure_ |
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_ |
Returns a string contain the recorded runs, assertions, failures and errors in this TestResult. |
<code/>and<pre/>for code samples.