D4rtTestResult class

Result of running a D4rt script or eval test via D4rtTester.

Contains information about the test execution including whether it timed out, any exceptions thrown, and the process output.

Constructors

D4rtTestResult({required bool timedOut, List<String> exceptions = const [], String processOutput = '', String processError = '', int exitCode = 0})
const
D4rtTestResult.fromTestProcess({required int exitCode, required String stdout, required String stderr, bool timedOut = false})
Parse a D4rtTestResult from the process output of a test runner.
factory

Properties

exceptions List<String>
Exceptions thrown during test execution.
final
exitCode int
Exit code of the test process (-1 if timed out / killed).
final
hashCode int
The hash code for this object.
no setterinherited
processError String
Stderr output from the test runner process.
final
processOutput String
Captured stdout output from the D4rt script execution.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the test passed successfully (no timeout, no exceptions, exit 0).
no setter
timedOut bool
Whether the test timed out before completing.
final

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