TestEvent.error constructor
TestEvent.error({})
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;