Skip to content

Commit

Permalink
Added debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AllDmeat committed Feb 27, 2024
1 parent cd8875b commit 97a6630
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/DBXCResultParser/Models/DTO/DTO+Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
extension ActionsInvocationRecordDTO {
init(from xcresultPath: URL) throws {
let result = try DBShell.execute("xcrun xcresulttool get --path \(xcresultPath.relativePath) --format json")
print("Parsed ActionsInvocationRecordDTO: \n \(result)")
let data = try result.data(using: .utf8) ?! UnwrapError.valueIsNil
self = try JSONDecoder().decode(ActionsInvocationRecordDTO.self, from: data)
}
Expand All @@ -19,6 +20,7 @@ extension ActionTestPlanRunSummariesDTO {
init(from xcresultPath: URL, refId: String? = nil) throws {
let refId = try (refId ?? ActionsInvocationRecordDTO(from: xcresultPath).testsRefId)
let result = try DBShell.execute("xcrun xcresulttool get --path \(xcresultPath.relativePath) --format json --id \(refId)")
print("Parsed ActionTestPlanRunSummariesDTO: \n \(result)")
let data = try result.data(using: .utf8) ?! UnwrapError.valueIsNil
self = try JSONDecoder().decode(ActionTestPlanRunSummariesDTO.self, from: data)
}
Expand Down

0 comments on commit 97a6630

Please sign in to comment.