ScenarioRunPackage constructor
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,
Implementation
ScenarioRunPackage({
required this.path,
required this.output,
this.axes,
this.ms = 0,
this.scenarios = const [],
this.report,
this.log,
this.error,
this.drift,
int? passed,
int? failed,
int? skipped,
int? unsettledCount,
this.scenariosElided = 0,
this.time = 'fake',
this.animations,
}) : passed = passed ?? scenarios.where((s) => s.ok && !s.skipped).length,
failed = failed ?? scenarios.where((s) => !s.ok).length,
skipped = skipped ?? scenarios.where((s) => s.skipped).length,
unsettledCount =
unsettledCount ??
scenarios.fold(0, (sum, s) => sum + s.unsettledCount);