ErrorTestEvent class

An ErrorTestEvent 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.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

ErrorTestEvent({required int testID, required String error, required String stackTrace, required bool isFailure, required int time})
An ErrorTestEvent 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.
const
ErrorTestEvent.fromJson(Map<String, dynamic> json)
An ErrorTestEvent 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.
factory

Properties

error String
The result of calling toString() on the error object.
final
hashCode int
The hash code for this object.
no setterinherited
isFailure bool
Whether the error was a TestFailure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace String
The error's stack trace, in the stack_trace package format.
final
testID int
The ID of the test that experienced the error.
final
time int
The time (in milliseconds) that has elapsed since the test runner started.
finalinherited
type String
The type of the event.
finalinherited

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