-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
119 additions
and
25 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
27 changes: 27 additions & 0 deletions
27
Sources/DBXCResultParserTestHelpers/CoverageDTO+TestHelpers.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,27 @@ | ||
// | ||
// CoverageDTO+TestHelpers.swift | ||
// | ||
// | ||
// Created by Aleksey Berezka on 19.12.2023. | ||
// | ||
|
||
import Foundation | ||
@testable import DBXCResultParser | ||
|
||
extension CoverageDTO { | ||
public static func testMake( | ||
buildProductPath: String = "", | ||
coveredLines: Int = 0, | ||
executableLines: Int = 0, | ||
lineCoverage: Double = 0, | ||
name: String = "" | ||
) -> CoverageDTO { | ||
self.init( | ||
buildProductPath: buildProductPath, | ||
coveredLines: coveredLines, | ||
executableLines: executableLines, | ||
lineCoverage: lineCoverage, | ||
name: name | ||
) | ||
} | ||
} |
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,35 @@ | ||
// Created by Yaroslav Bredikhin on 06.09.2022 | ||
|
||
import Foundation | ||
import XCTest | ||
@testable import DBXCResultParser | ||
|
||
class DBXCReportModelTests: XCTestCase { | ||
|
||
override func setUpWithError() throws { | ||
try super.setUpWithError() | ||
} | ||
|
||
override func tearDownWithError() throws { | ||
try super.tearDownWithError() | ||
} | ||
|
||
func test() throws { | ||
let report = try DBXCReportModel(xcresultPath: Constants.testsReportPath) | ||
XCTAssertEqual(report.modules.count, 1) | ||
|
||
let module = try XCTUnwrap(report.modules.first) | ||
XCTAssertEqual(module.name, "DBXCResultParserTests") | ||
XCTAssertEqual(module.coverage?.coveredLines, 299) | ||
|
||
let files = module.files.sorted { $0.name < $1.name } | ||
XCTAssertEqual(files.count, 5) | ||
|
||
let file = try XCTUnwrap(files.first) | ||
XCTAssertEqual(file.name, "CoverageDTOTests") | ||
XCTAssertEqual(file.repeatableTests.count, 1) | ||
|
||
let test = try XCTUnwrap(file.repeatableTests.first) | ||
XCTAssertEqual(test.name, "test_file_with_coverage()") | ||
} | ||
} |
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
Binary file added
BIN
+122 Bytes
...~4ZbefpzkC0VpapuFDODsGfc2n3yoH6sIv14OkmUZgIrv8Ef9mosTuocbAZCp650auGUzZ1OrFpIa6Gn4IE7gEQ==
Binary file not shown.
Binary file added
BIN
+4.51 KB
...~5nl5AOR8XQ_R63V_X_gYIbqhDJW6XN1b4ZL44ZuQu7w2ndaMoIq65sqvuOPJzOy9cEJOUcdjUO9X3idAAx51Wg==
Binary file not shown.
Binary file added
BIN
+657 Bytes
...~9mEpxwSzHfN42tWsOiegvPYJauHQCccQAMkNx_SjixYjtf6OktUE5s06dD-zCdiFlBHyAS5U59SbJY15FLD1DQ==
Binary file not shown.
Binary file added
BIN
+615 Bytes
...~CJ8dVhvv942Vm5NVYGk4GaKLu6d-kLuxiRkKy1a4Ftr9XZTAUmtKe795VRGi8WD7ZC3T7nEoMY38GKcR8soblw==
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...~ELfT68gL-ki3Ebn-cq0QgQ_cyem24L0jUrMaemcBAzTZABUJCQdSviP2zlFN5BvydNygXmOhWUNXrR4Ks9Mfqg==
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 @@ | ||
[{"name":"testmanagerd.log","type":1}] |
Binary file added
BIN
+1.24 KB
...~FJYMa5wF3eCtRLB9MNh9F6nRJAipItLGgdJeNTkGR0SgXYCjkU0HLAlqHJbzIBAxJo8YGnyYge4SjV9d9Ht6aA==
Binary file not shown.
Binary file added
BIN
+957 Bytes
...~Jm-9bmp0iO7J5TFmQ6_Rcx-tMBfOhC_KT8r4MJ_pblRbobRFYDDjx4FFZviEWHrGuysV4jxAPN-viLZ7RmkGuw==
Binary file not shown.
Binary file added
BIN
+263 Bytes
...~KKM_frHiY9aMuVuqNa1fyjVsa6Tofc1gKTxE4tCPEhspL1Ur91-8gm5wi_202oFbZqQWm6sxchhTeS5SsF5PFg==
Binary file not shown.
Binary file added
BIN
+4.91 KB
...~MTJwzuyfPRdij8alSXxdzMyIvEuGmzmuycLEuEZNqJRUYQ45XiRlZ30NObQS8_1dgZkdtQo3SFi1bGgkyrtVJg==
Binary file not shown.
Binary file added
BIN
+7.18 KB
...~UjX-3m41sUb-29E76m3So7wsDkEkNYgXe1ePymDimRFzEiwgRS4hWOZJUBXbGb9EFr5NHcxf6SUSCR3c9lobLw==
Binary file not shown.
Binary file added
BIN
+113 Bytes
...~iG1OGKC4tVck7zKvM5Damk41kMaNpBjEAIuQtSLJKyZgLe3f6-NRg1Wo_a4-m0aBnLTg1bkbiTqFSnx9ujiLtQ==
Binary file not shown.
Binary file added
BIN
+279 Bytes
...~mHNQ_zWq37VjG3uSjVOmefh6jQC4Qf1Ld3SDwHJNHKtvzFxZgX9fqrIu7JomxGNdZgXbxxGnui1MASu5JHNfCg==
Binary file not shown.
Binary file added
BIN
+165 Bytes
...~o0rl8PChW0TaeCb_5U7ukdKM2FypRQ3YXIqXGk_K0mbUVcYqYeFfwhfXQ-Ig5HOC_vQFwIqMy4H6dBuKyzyVGw==
Binary file not shown.
Binary file added
BIN
+199 Bytes
...~oRMi0sbQLktfDDDGUS-SqBKpdDiD6HCztVES_ShfGr0KVcYENoIq7y9oUSDWL5B_P2gkdtWG8JEsJLxPbdWOZA==
Binary file not shown.
Binary file added
BIN
+72 Bytes
...~sSKIMS3wzgu_9uLWLhYYkuY5FnILc3txu2qq_PKgPAHXhNs12Vp8e8c8LpojWL4XT9q5l7L84716snQZkB00sg==
Binary file not shown.
Binary file added
BIN
+1.64 KB
...~w-cG65XA9aRf4hPf1EJMvmSuZrVZwHv5zzYQShp2XVXhZ6V13xEtVWs6uSWpwb1VFtlEwM6bATzJo6iF0f-zdA==
Binary file not shown.
Binary file added
BIN
+421 Bytes
...~zvMwv4XtVy0uMbqTXcXUqwsNwnoJCDTARInSdT8Yd1yr7a7AO6GdxgVvVblgBaOfEjL1zIVVrSE8GHQfnr12OA==
Binary file not shown.
Binary file added
BIN
+133 Bytes
...~4ZbefpzkC0VpapuFDODsGfc2n3yoH6sIv14OkmUZgIrv8Ef9mosTuocbAZCp650auGUzZ1OrFpIa6Gn4IE7gEQ==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~5nl5AOR8XQ_R63V_X_gYIbqhDJW6XN1b4ZL44ZuQu7w2ndaMoIq65sqvuOPJzOy9cEJOUcdjUO9X3idAAx51Wg==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~9mEpxwSzHfN42tWsOiegvPYJauHQCccQAMkNx_SjixYjtf6OktUE5s06dD-zCdiFlBHyAS5U59SbJY15FLD1DQ==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~CJ8dVhvv942Vm5NVYGk4GaKLu6d-kLuxiRkKy1a4Ftr9XZTAUmtKe795VRGi8WD7ZC3T7nEoMY38GKcR8soblw==
Binary file not shown.
Binary file added
BIN
+67 Bytes
...~ELfT68gL-ki3Ebn-cq0QgQ_cyem24L0jUrMaemcBAzTZABUJCQdSviP2zlFN5BvydNygXmOhWUNXrR4Ks9Mfqg==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~FJYMa5wF3eCtRLB9MNh9F6nRJAipItLGgdJeNTkGR0SgXYCjkU0HLAlqHJbzIBAxJo8YGnyYge4SjV9d9Ht6aA==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~Jm-9bmp0iO7J5TFmQ6_Rcx-tMBfOhC_KT8r4MJ_pblRbobRFYDDjx4FFZviEWHrGuysV4jxAPN-viLZ7RmkGuw==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~KKM_frHiY9aMuVuqNa1fyjVsa6Tofc1gKTxE4tCPEhspL1Ur91-8gm5wi_202oFbZqQWm6sxchhTeS5SsF5PFg==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~MTJwzuyfPRdij8alSXxdzMyIvEuGmzmuycLEuEZNqJRUYQ45XiRlZ30NObQS8_1dgZkdtQo3SFi1bGgkyrtVJg==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~UjX-3m41sUb-29E76m3So7wsDkEkNYgXe1ePymDimRFzEiwgRS4hWOZJUBXbGb9EFr5NHcxf6SUSCR3c9lobLw==
Binary file not shown.
Binary file added
BIN
+133 Bytes
...~iG1OGKC4tVck7zKvM5Damk41kMaNpBjEAIuQtSLJKyZgLe3f6-NRg1Wo_a4-m0aBnLTg1bkbiTqFSnx9ujiLtQ==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~mHNQ_zWq37VjG3uSjVOmefh6jQC4Qf1Ld3SDwHJNHKtvzFxZgX9fqrIu7JomxGNdZgXbxxGnui1MASu5JHNfCg==
Binary file not shown.
Binary file added
BIN
+133 Bytes
...~o0rl8PChW0TaeCb_5U7ukdKM2FypRQ3YXIqXGk_K0mbUVcYqYeFfwhfXQ-Ig5HOC_vQFwIqMy4H6dBuKyzyVGw==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~oRMi0sbQLktfDDDGUS-SqBKpdDiD6HCztVES_ShfGr0KVcYENoIq7y9oUSDWL5B_P2gkdtWG8JEsJLxPbdWOZA==
Binary file not shown.
Binary file added
BIN
+199 Bytes
...~sSKIMS3wzgu_9uLWLhYYkuY5FnILc3txu2qq_PKgPAHXhNs12Vp8e8c8LpojWL4XT9q5l7L84716snQZkB00sg==
Binary file not shown.
Binary file added
BIN
+397 Bytes
...~w-cG65XA9aRf4hPf1EJMvmSuZrVZwHv5zzYQShp2XVXhZ6V13xEtVWs6uSWpwb1VFtlEwM6bATzJo6iF0f-zdA==
Binary file not shown.
Binary file added
BIN
+1 Byte
...~zvMwv4XtVy0uMbqTXcXUqwsNwnoJCDTARInSdT8Yd1yr7a7AO6GdxgVvVblgBaOfEjL1zIVVrSE8GHQfnr12OA==
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
Tests/DBXCResultParserTests/Resources/DBXCResultParser.xcresult/Info.plist
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,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>dateCreated</key> | ||
<date>2023-12-18T14:59:20Z</date> | ||
<key>externalLocations</key> | ||
<array/> | ||
<key>rootId</key> | ||
<dict> | ||
<key>hash</key> | ||
<string>0~w-cG65XA9aRf4hPf1EJMvmSuZrVZwHv5zzYQShp2XVXhZ6V13xEtVWs6uSWpwb1VFtlEwM6bATzJo6iF0f-zdA==</string> | ||
</dict> | ||
<key>storage</key> | ||
<dict> | ||
<key>backend</key> | ||
<string>fileBacked2</string> | ||
<key>compression</key> | ||
<string>standard</string> | ||
</dict> | ||
<key>version</key> | ||
<dict> | ||
<key>major</key> | ||
<integer>3</integer> | ||
<key>minor</key> | ||
<integer>44</integer> | ||
</dict> | ||
</dict> | ||
</plist> |