-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Write html to xcresult dir with relative img src
- Loading branch information
1 parent
30f861d
commit c268a73
Showing
13 changed files
with
383 additions
and
254 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
// | ||
// Attachment.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Attachment: Codable { | ||
let filename: String | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case filename = "Filename" | ||
} | ||
} |
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,13 @@ | ||
// | ||
// FailureSummary.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct FailureSummary: Codable { | ||
|
||
} |
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,18 @@ | ||
// | ||
// Result.swift | ||
// XCResultViewer | ||
// | ||
// Created by Kane Cheshire on 19/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Result: Codable { | ||
let testableSummaries: [TestableSummary] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testableSummaries = "TestableSummaries" | ||
} | ||
} | ||
|
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,21 @@ | ||
// | ||
// SubTest.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct SubTest: Codable { | ||
let testName: String | ||
let activitySummaries: [ActivitySummary] | ||
let failureSummaries: [FailureSummary]? | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testName = "TestName" | ||
case activitySummaries = "ActivitySummaries" | ||
case failureSummaries = "FailureSummaries" | ||
} | ||
} |
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,23 @@ | ||
// | ||
// Test.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct Test: Codable { | ||
let testName: String | ||
let subtests: [SubTest] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testName = "TestName" | ||
case subtests = "Subtests" | ||
} | ||
|
||
var containsFailures: Bool { | ||
return subtests.first(where: { $0.failureSummaries != nil }) != 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,19 @@ | ||
// | ||
// TestSummaryGroup.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct TestSummaryGroup: Codable { | ||
let testName: String | ||
let testSummarySubGroups: [TestSummarySubGroup] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testName = "TestName" | ||
case testSummarySubGroups = "Subtests" | ||
} | ||
} |
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,19 @@ | ||
// | ||
// TestSummarySubGroup.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct TestSummarySubGroup: Codable { | ||
let testName: String | ||
let tests: [Test] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testName = "TestName" | ||
case tests = "Subtests" | ||
} | ||
} |
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,19 @@ | ||
// | ||
// TestableSummary.swift | ||
// xcresultviewer | ||
// | ||
// Created by Kane Cheshire on 27/11/2018. | ||
// Copyright © 2018 kane.codes. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
struct TestableSummary: Codable { | ||
let testName: String | ||
let testSummaryGroups: [TestSummaryGroup] | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case testName = "TestName" | ||
case testSummaryGroups = "Tests" | ||
} | ||
} |
Oops, something went wrong.