Skip to content

Commit e6558c5

Browse files
committed
Use severity >= .error instead of == .error
1 parent a46b1c5 commit e6558c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,9 @@ extension Event.HumanReadableOutputRecorder {
547547
testData.issueCount[issue.severity] = issueCount + 1
548548
}
549549

550-
// Store individual issue information for failure summary (only for errors)
551-
if issue.severity == .error {
550+
// Store individual issue information for failure summary, but only for
551+
// issues whose severity is error or greater.
552+
if issue.severity >= .error {
552553
// Extract detailed failure message
553554
let description: String
554555
if case let .expectationFailed(expectation) = issue.kind {

0 commit comments

Comments
 (0)