Result enum

The outcome of the test, as far as it's known.

Inheritance
Available extensions

Values

success → const Result

The test has not yet failed in any way.

Note that this doesn't mean that the test won't fail in the future.

skipped → const Result

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

This implies that the test hasn't failed yet. However, it this doesn't mean that the test won't fail in the future.

failure → const Result

The test has failed.

A failure is specifically caused by a TestFailure being thrown; any other exception causes an error.

error → const Result

The test has crashed.

Any exception other than a TestFailure is considered to be an error.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isFailing bool
Whether this is a failing result.
no setter
isPassing bool
Whether this is a passing result.
no setter
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.
override

Operators

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

Constants

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