StatusReport

private class
unittest.StatusReport

Description

Generic stats value object holding the number of passed/failed/skipped events.

API overview

Constructor

StatusReport ()

Attributes

Public attributes

failed: Number

Number of failed tests

passed: Number

Number of tests that passed

skipped: Number

Number of skipped tests

successful: Boolean read-only

Returns true if none of the tests failed

total: Number

The total number of recorded events

Functions

Public functions

__op_plusassignment ( s: StatusReport ): Void

Summation override for convenience

reset (): Void

Resets all metrics to zero

updateFailed (): Void

Set the number of failed tests to the remainder after taking into account how many passed and were skipped

Constructor

StatusReport ()

Attributes

failed: Number

Number of failed tests.

passed: Number

Number of tests that passed.

skipped: Number

Number of skipped tests.

successful: Boolean

read-only

Returns true if none of the tests failed.

total: Number

The total number of recorded events.

Functions

__op_plusassignment ( s: StatusReport ): Void

Summation override for convenience.

Parameters

s: StatusReport


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

reset (): Void

Resets all metrics to zero.



toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

updateFailed (): Void

Set the number of failed tests to the remainder after taking into account how many passed and were skipped.



: