diff --git a/packages/patrol_log/lib/src/patrol_log_reader.dart b/packages/patrol_log/lib/src/patrol_log_reader.dart index 14f40d612..f60d843d1 100644 --- a/packages/patrol_log/lib/src/patrol_log_reader.dart +++ b/packages/patrol_log/lib/src/patrol_log_reader.dart @@ -124,9 +124,6 @@ class PatrolLogReader { final lastEntry = _singleEntries.last; lastEntry.entries.add(entry); } else { - if (entry is StepEntry && entry.status == StepEntryStatus.start) { - stepsCounter++; - } final lastEntry = _singleEntries.last; lastEntry.entries.add(entry); } @@ -145,6 +142,8 @@ class PatrolLogReader { if (showTestSteps) { if (entry.status != StepEntryStatus.start) { _clearPreviousLine(); + } else { + stepsCounter++; } log(entry.pretty(number: stepsCounter)); }