errors property

The errors surfaced by the test.

A test with any errors will have a state of State.failed.

Note that a test can change state from State.passed to State.failed if the test surfaces an unawaited asynchronous error.

A test may have more than one error if there were unhandled asynchronous errors surfaced after the test is done.

Implementation

Iterable<AsyncError> get errors => _liveTest.errors;