-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from davidahouse/house/41/xcode-14-schema
♻️ Schema updates for Xcode 14
- Loading branch information
Showing
60 changed files
with
1,062 additions
and
486 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
Sources/XCResultKit/Schema/ActionAbstractTestSummary.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by David House on 9/17/22. | ||
// | ||
|
||
import Foundation | ||
|
||
//- ActionAbstractTestSummary | ||
// * Kind: object | ||
// * Properties: | ||
// + name: String? | ||
|
||
public struct ActionAbstractTestSummary: XCResultObject, Encodable { | ||
public let name: String? | ||
|
||
public init?(_ json: [String: AnyObject]) { | ||
name = xcOptional(element: "name", from: json) | ||
} | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case name | ||
} | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encode(name, forKey: .name) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by David House on 9/17/22. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct ActionTestConfiguration: XCResultObject { | ||
public let userInfo: SortedKeyValueArray? | ||
|
||
public init?(_ json: [String: AnyObject]) { | ||
userInfo = xcOptional(element: "userInfo", from: json) | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
Sources/XCResultKit/Schema/ActionTestExpectedFailure.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by David House on 9/17/22. | ||
// | ||
|
||
import Foundation | ||
|
||
//- ActionTestExpectedFailure | ||
// * Kind: object | ||
// * Properties: | ||
// + uuid: String | ||
// + failureReason: String? | ||
// + failureSummary: ActionTestFailureSummary? | ||
// + isTopLevelFailure: Bool | ||
|
||
public struct ActionTestExpectedFailure: XCResultObject { | ||
|
||
public let uuid: String? | ||
public let failureReason: String? | ||
public let failureSummary: ActionTestFailureSummary? | ||
public let isTopLevelFailure: Bool | ||
|
||
public init?(_ json: [String: AnyObject]) { | ||
do { | ||
uuid = xcOptional(element: "uuid", from: json) | ||
failureReason = xcOptional(element: "failureReason", from: json) | ||
failureSummary = xcOptional(element: "failureSummary", from: json) | ||
isTopLevelFailure = try xcRequired(element: "isTopLevelFailure", from: json) | ||
} catch { | ||
logError("Error parsing ActionTestExpectedFailure: \(error.localizedDescription)") | ||
return nil | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by David House on 7/3/19. | ||
// | ||
//- ActionTestFailureSummary | ||
// * Kind: object | ||
// * Properties: | ||
// + message: String? | ||
// + fileName: String | ||
// + lineNumber: Int | ||
// + isPerformanceFailure: Bool | ||
// + uuid: String | ||
// + issueType: String? | ||
// + detailedDescription: String? | ||
// + attachments: [ActionTestAttachment] | ||
// + associatedError: TestAssociatedError? | ||
// + sourceCodeContext: SourceCodeContext? | ||
// + timestamp: Date? | ||
// + isTopLevelFailure: Bool | ||
|
||
import Foundation | ||
|
||
public struct ActionTestFailureSummary: XCResultObject { | ||
public let message: String? | ||
public let fileName: String? | ||
public let lineNumber: Int | ||
public let isPerformanceFailure: Bool | ||
public let uuid: String | ||
public let issueType: String? | ||
public let detailedDescription: String? | ||
public let attachments: [ActionTestAttachment] | ||
public let associatedError: TestAssociatedError? | ||
public let sourceCodeContext: SourceCodeContext? | ||
public let timestamp: Date? | ||
public let isTopLevelFailure: Bool | ||
|
||
public init?(_ json: [String: AnyObject]) { | ||
do { | ||
message = xcOptional(element: "message", from: json) | ||
fileName = xcOptional(element: "fileName", from: json) | ||
lineNumber = xcOptional(element: "lineNumber", from: json) ?? 0 | ||
isPerformanceFailure = xcOptional(element: "isPerformanceFailure", from: json) ?? false | ||
uuid = try xcRequired(element: "uuid", from: json) | ||
issueType = xcOptional(element: "issueType", from: json) | ||
detailedDescription = xcOptional(element: "detailedDescription", from: json) | ||
attachments = xcArray(element: "attachments", from: json).ofType(ActionTestAttachment.self) | ||
associatedError = xcOptional(element: "associatedError", from: json) | ||
sourceCodeContext = xcOptional(element: "sourceCodeContext", from: json) | ||
timestamp = xcOptional(element: "timestamp", from: json) | ||
isTopLevelFailure = try xcRequired(element: "isTopLevelFailure", from: json) | ||
} catch { | ||
logError("Error parsing ActionTestExpectedFailure: \(error.localizedDescription)") | ||
return nil | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by David House on 9/17/22. | ||
// | ||
|
||
import Foundation | ||
|
||
//- ActionTestNoticeSummary | ||
// * Kind: object | ||
// * Properties: | ||
// + message: String? | ||
// + fileName: String | ||
// + lineNumber: Int | ||
// + timestamp: Date? | ||
|
||
public struct ActionTestNoticeSummary: XCResultObject { | ||
public let message: String? | ||
public let fileName: String | ||
public let lineNumber: Int | ||
public let timestamp: Date? | ||
|
||
public init?(_ json: [String: AnyObject]) { | ||
do { | ||
message = xcOptional(element: "message", from: json) | ||
fileName = try xcRequired(element: "fileName", from: json) | ||
lineNumber = try xcRequired(element: "lineNumber", from: json) | ||
timestamp = xcOptional(element: "timestamp", from: json) | ||
} catch { | ||
logError("Error parsing ActionTestNoticeSummary: \(error.localizedDescription)") | ||
return nil | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.