Skip to content

Commit 1c0f29e

Browse files
committed
Add integration tests with real xcresult fixtures
- Update IntegrationTests.swift to use fixture bundles via Bundle.module - Remove .disabled attribute and environment variable dependency - Add 4 xcresult bundles: clean build, errors, warnings+failures, analyzer - Fix BuildIssue severity mapping to use contains() for partial matches - All 39 tests now passing (35 unit + 4 integration)
1 parent 06068a8 commit 1c0f29e

File tree

1,628 files changed

+466
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,628 files changed

+466
-30
lines changed

Sources/XCResultParser/Models/BuildIssue.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ public struct BuildIssue: Sendable, Codable, Equatable {
2828

2929
/// Severity level for annotations based on issue type
3030
public var severity: Severity {
31-
switch issueType.lowercased() {
32-
case "error": .failure
33-
case "warning": .warning
34-
case "analyzer warning": .warning
35-
default: .notice
31+
let lowercased = issueType.lowercased()
32+
if lowercased.contains("error") {
33+
return .failure
34+
} else if lowercased.contains("warning") {
35+
return .warning
36+
} else {
37+
return .notice
3638
}
3739
}
3840
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)