RunSummary class

Immutable summary of a completed test run.

Produced by JsonEventParser and consumed by Notifier implementations. All counts exclude hidden (auto-generated) tests.

Constructors

RunSummary({required TestOutcome outcome, required int passed, required int failed, required int skipped, List<String> failedTestNames = const [], String? crashOutput, Duration? duration})
Creates a RunSummary.
const

Properties

crashOutput String?
Stderr captured from the process when the outcome is TestOutcome.crash.
final
duration Duration?
Elapsed wall-clock time from process start to stream completion.
final
failed int
Number of tests that failed.
final
failedTestNames List<String>
Names of all failed tests, in the order they completed.
final
hashCode int
The hash code for this object.
no setteroverride
outcome TestOutcome
The overall verdict of the run.
final
passed int
Number of tests that passed (not skipped, not failed).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipped int
Number of tests that were skipped.
final

Methods

copyWith({TestOutcome? outcome, int? passed, int? failed, int? skipped, List<String>? failedTestNames, String? crashOutput, Duration? duration}) RunSummary
Returns a copy of this summary with the given fields replaced.
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.
override