State enum

The running and success state of a test monitored by a TestCaseMonitor.

Inheritance

Values

pending → const State

The test is has not yet started.

running → const State

The test is running and has not yet failed.

passed → const State

The test has completed without any error.

This implies that the test body has completed, and no error has surfaced yet. However, it this doesn't mean that the test won't fail in the future.

skipped → const State

The test, or some part of it, has been skipped.

This does not imply that the test has not had an error, but if there are errors they are ignored.

failed → const State

The test has failed.

An test fails when any exception, typically a TestFailure, is thrown in the test's zone. A test that has failed may still have additional errors that surface as unhandled asynchronous errors.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<State>
A constant List of the values in this enum, in order of their declaration.