ScenarioRunPackage class
One package's run: where its artifacts went, and how each scenario fared.
Constructors
-
ScenarioRunPackage({required String path, required String output, Map<
String, String> ? axes, int ms = 0, List<ScenarioRunOutcome> scenarios = const [], String? report, String? log, String? error, ScenarioRunDrift? drift, int? passed, int? failed, int? skipped, int? unsettledCount, int scenariosElided = 0, String time = 'fake', double? animations}) -
ScenarioRunPackage.fromJson(Map<
String, Object?> json) -
factory
Properties
- animations → double?
-
The ticker scale a
realrun applied — 0.1 by default — or null under the fake clock, where there is nothing to scale.final -
axes
→ Map<
String, String> ? -
The assignment this entry ran under, when the request asked for a
matrix (
devices=/languages=): one entry per package per point of it, each with its own output. Null for a single-assignment run, where ScenarioRunResult.axes already says it once.final - drift → ScenarioRunDrift?
-
What this run recorded that the run before it did not:
compared,nameMatched, thebaselineit was compared against, and a count plus a capped list of steps underchanged,addedandremoved, each saying inwhatwhich facets moved.final - error → String?
-
Set when the package could not be run at all — the harness did not
compile, the tester did not start — in which case scenarios is empty.
final
- failed → int
-
How many came back red. Each of them is also in scenarios, and in
ScenarioRunResult.failed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRealTime → bool
-
no setter
- log → String?
-
The harness process's console, whole, on disk — engine noise, and
anything printed outside a test zone. Not where a scenario's own prints
or exceptions go: those ride the steps' events and the outcome's
errors. This file is for the failure mode nothing structured has a slot for yet. One file per harness process, truncated when it starts.final - ms → int
-
Whole-run wall time inside the harness.
final
- output → String
-
Where this run's artifacts were written.
final
- passed → int
-
How many scenarios passed — every one of the package's, whether or not
scenarios lists it.
final
- path → String
-
final
- report → String?
-
The whole run, on disk, in this same shape — every step of every
scenario, whatever this copy carries.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scenarios
→ List<
ScenarioRunOutcome> -
Every scenario in
run.json; in an action's answer, only the ones with something to say. A green scenario is counted in passed and left in the file, and scenariosElided says how many were. What stays is every red one, every skipped one, and every green one whose walk stalled —unchangedCountabove zero, which is a pass nobody should take at its word.final - scenariosElided → int
-
How many of the package's scenarios are in
run.jsonrather than in this copy — zero when scenarios is the whole of them. The package's ScenarioRunOutcome.stepsElided: stated, so a short list is never read as a short run.final - skipped → int
-
How many declared
skip: trueand never ran. Not counted in passed: green they are not.final - time → String
-
The clock this package ran on —
fake(FakeAsync) orreal(the wall clock, real sockets). Arealrun's pictures came off live data, which is why a comparison leaves them alone; seecompareScenarioRuns.final - unsettledCount → int
-
How many steps across the whole package a settle gave up on — the sum
of every scenario's ScenarioRunOutcome.unsettledCount, including the
ones scenarios leaves out, so folding the green rows does not fold
the number away with them.
final
Methods
-
carrying(
List< ScenarioRunOutcome> keep) → ScenarioRunPackage -
This package with
keepin place of its scenarios, and its counts left as they were — they describe the run, not the copy. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited