Skip to content

Commit 29c448f

Browse files
committed
Add severity tracking to IssueInfo struct and factor failure summary logic into TestRunSummary type
1 parent 73f87ae commit 29c448f

File tree

2 files changed

+228
-118
lines changed

2 files changed

+228
-118
lines changed

Sources/Testing/Events/Recorder/Event.ConsoleOutputRecorder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,7 @@ extension Event.ConsoleOutputRecorder {
309309

310310
// Print failure summary when run ends
311311
if case .runEnded = event.kind {
312-
let summary = _humanReadableOutputRecorder.generateFailureSummary(options: options)
313-
if !summary.isEmpty {
312+
if let summary = _humanReadableOutputRecorder.generateFailureSummary(options: options) {
314313
// Add blank line before summary and after summary for visual separation
315314
write("\n\(summary)\n")
316315
}

0 commit comments

Comments
 (0)