API Documentation | All Packages | All Classes | Index | Frames No Frames |
Result

Package | org.flexunit.runner
Class | public class Result
Inheritance | Result Object

A `Result` collects and summarizes information from running multiple tests. Since tests are expected to run correctly, successful tests are only noted in the count of tests that ran.

Public Properties

| Property | Defined By
--- | --- | ---
|  | failureCount : int [read-only] Returns the number of tests that failed over the course of the run. | Result
|  | failures : Array [read-only] Returns the Failures describing tests that failed and the problems they encountered. | Result
|  | ignoreCount : int [read-only] Returns the number of tests ignored over the course of the run. | Result
|  | runCount : int [read-only] Returns the number of tests that have run. | Result
|  | runTime : Number [read-only] Returns the number of milliseconds it took to run the entire set of tests. | Result
|  | successful : Boolean [read-only] Returns a Boolean value of true if all tests succeeded. | Result

Public Methods

| Method | Defined By
--- | --- | ---
|  | Result() Constructor. | Result
|  | createListener():RunListener Internal use only. | Result

Property Detail

_ignoreCount | property

`classInternal var _ignoreCount:int = 0`

The number of tests ignored.

_runCount | property |

`classInternal var _runCount:int = 0`

The number of tests run.

_runTime | property |

`classInternal var _runTime:Number = 0`

The number of milliseconds it took to run the entire set of tests.

_startTime | property |

`classInternal var _startTime:Number`

The time when the test run started.

failureCount | property |

`failureCount:int` [read-only]

Returns the number of tests that failed over the course of the run.

Implementation
`public function get failureCount():int`

failures | property |

`failures:Array` [read-only]

Returns the `Failure`s describing tests that failed and the problems they encountered.

Implementation
`public function get failures():Array`

ignoreCount | property |

`ignoreCount:int` [read-only]

Returns the number of tests ignored over the course of the run.

Implementation
`public function get ignoreCount():int`

runCount | property |

`runCount:int` [read-only]

Returns the number of tests that have run.

Implementation
`public function get runCount():int`

runTime | property |

`runTime:Number` [read-only]

Returns the number of milliseconds it took to run the entire set of tests.

Implementation
`public function get runTime():Number`

successful | property |

`successful:Boolean` [read-only]

Returns a Boolean value of `true` if all tests succeeded.

Implementation
`public function get successful():Boolean`
Constructor Detail

Result | () | Constructor

`public function Result()`

Constructor.

Method Detail

createListener | () | method

`public function createListener():RunListener`

Internal use only.

Returns

| `RunListener`

Thu Apr 10 2014, 08:07 AM +10:00