Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Tests/TestingTests/EventRecorderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ struct EventRecorderTests {
let testCount = Reference<Int?>()
let suiteCount = Reference<Int?>()
let issueCount = Reference<Int?>()
let warningCount = Reference<Int?>()
let knownIssueCount = Reference<Int?>()

let runFailureRegex = Regex {
Expand All @@ -355,6 +356,8 @@ struct EventRecorderTests {
" issue"
Optionally("s")
" (including "
Capture(as: warningCount) { OneOrMore(.digit) } transform: { Int($0) }
" warnings and "
Capture(as: knownIssueCount) { OneOrMore(.digit) } transform: { Int($0) }
" known issue"
Optionally("s")
Expand All @@ -368,8 +371,9 @@ struct EventRecorderTests {
)
#expect(match[testCount] == 9)
#expect(match[suiteCount] == 2)
#expect(match[issueCount] == 12)
#expect(match[knownIssueCount] == 5)
#expect(match[issueCount] == 16)
#expect(match[warningCount] == 3)
#expect(match[knownIssueCount] == 6)
}

@Test("Issue counts are summed correctly on run end for a test with only warning issues")
Expand Down