# Class: TestResult

## vertx-unit-js/test_result~ TestResult

#### new TestResult()

The result of a test.

Source:
  - vertx-unit-js/test_result.js, line 30

### Methods

#### beginTime() → {number}

The time at which the test began in millis.

Source:
  - vertx-unit-js/test_result.js, line 59

##### Returns:

Type
  number

#### durationTime() → {number}

How long the test lasted in millis.

Source:
  - vertx-unit-js/test_result.js, line 76

##### Returns:

Type
  number

#### failed() → {boolean}

Did it fail?

Source:
  - vertx-unit-js/test_result.js, line 110

##### Returns:

Type
  boolean

#### failure() → {Failure}

An exception describing failure, null if the test succeeded.

Source:
  - vertx-unit-js/test_result.js, line 127

##### Returns:

Type
  Failure

#### name() → {string}

The test description, may be null if none was provided.

Source:
  - vertx-unit-js/test_result.js, line 42

##### Returns:

Type
  string

#### succeeded() → {boolean}

Did it succeed?

Source:
  - vertx-unit-js/test_result.js, line 93

##### Returns:

Type
  boolean