TestEvent.error constructor

TestEvent.error({
  1. required int time,
  2. required int testID,
  3. required String error,
  4. required String stackTrace,
  5. required bool isFailure,
})

A ErrorEvent indicates that a test encountered an uncaught error.

Note that this may happen even after the test has completed, in which case it should be considered to have failed.

If a test is asynchronous, it may encounter multiple errors, which will result in multiple ErrorEvents.

Implementation

factory TestEvent.error({
  required int time,
  required int testID,
  required String error,
  required String stackTrace,
  required bool isFailure,
}) = TestEventTestError;