reporters/step_log_grouping library

Functions

groupLogsByStep({required List<String> stepsOutline, required List<int> stepDurationsMs, required List<String> stepStartTimes, required List<Map<String, dynamic>> apiEvents, required List<String> rawConsoleLines, List<Map<String, dynamic>> storageSteps = const [], List<Map<String, dynamic>> secureStorageSteps = const [], List<Map<String, dynamic>> keychainSteps = const [], List<Map<String, dynamic>> screenshotFrames = const []}) List<Map<String, dynamic>>
Groups API events, console lines, and storage diffs by top-level step outline index.
parseConsoleLogLine(String line) → ({String message, int? stepIndex, DateTime? timestamp})
Parses a console log line produced by TestRuntimeState.formatConsoleLine.
stepOutlineTopLevelIndexes(List<String> stepsOutline) Iterable<({String line, bool nested, int topLevelIndex})>
Pure helpers for attributing API/console/storage logs to top-level test steps.