TestResult

public class
unittest.TestResult

Description

TestResult groups all the TypeTests and accumulates their reports.

API overview

Constructor

TestResult ()

Attributes

Public attributes

assertReport: StatusReport

Contains Assert-level metrics for how many asserts passed, failed and were skipped

scannedTypes: Number

The total number of scanned types in the test run

testReport: StatusReport

Contains Test-level metrics for how many tests passed, failed and were skipped

typeReport: StatusReport

Contains Type-level metrics for how many types passed, failed and were skipped

typeTests: Vector.<TypeTest>

TypeTest instances of all the Types that contain at least one test

Functions

Public functions

Constructor

TestResult ()

Attributes

assertReport: StatusReport

Contains Assert-level metrics for how many asserts passed, failed and were skipped.

scannedTypes: Number

The total number of scanned types in the test run.

testReport: StatusReport

Contains Test-level metrics for how many tests passed, failed and were skipped.

typeReport: StatusReport

Contains Type-level metrics for how many types passed, failed and were skipped.

typeTests: Vector.<TypeTest>

TypeTest instances of all the Types that contain at least one test.

Functions

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.

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.

: