Skip to content

Commit

Permalink
Replace ' ' in report path with %20
Browse files Browse the repository at this point in the history
Handle warning entry in PatrolLogReader
  • Loading branch information
pdenert committed Nov 22, 2024
1 parent 7454da3 commit 71cd412
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/patrol_log/lib/src/patrol_log_reader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class PatrolLogReader {
EntryType.test => TestEntry.fromJson(json),
EntryType.log => LogEntry.fromJson(json),
EntryType.error => ErrorEntry.fromJson(json),
EntryType.warning => WarningEntry.fromJson(json),
};
}

Expand Down Expand Up @@ -205,6 +206,7 @@ class PatrolLogReader {
log(entry.pretty());

case ErrorEntry():
case WarningEntry():
log(entry.pretty());
}
},
Expand All @@ -226,7 +228,7 @@ class PatrolLogReader {
'${Emojis.failure} Failed: $failedTestsCount\n'
'${failedTestsCount > 0 ? '$failedTestsList\n' : ''}'
'${Emojis.skip} Skipped: $skippedTests\n'
'${Emojis.report} Report: $reportPath\n'
'${Emojis.report} Report: ${reportPath.replaceAll(' ', '%20')}\n'
'${Emojis.duration} Duration: ${_stopwatch.elapsed.inSeconds}s\n';

/// Closes the stream subscription and the stream controller.
Expand Down

0 comments on commit 71cd412

Please sign in to comment.