Skip to content

Commit 114945d

Browse files
committed
Fixing tests
1 parent 00dce41 commit 114945d

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

Tests/IntegrationTests/ReferencePackageTests.swift

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,18 @@ class ReferencePackageTests: XCTestCase {
2626

2727
let xcodeTools = XcodeTools(logger: nil)
2828

29-
_ = try await xcodeTools.archive(projectDirectoryPath: oldReferencePackageDirectory.path(), scheme: "ReferencePackage", projectType: .swiftPackage)
30-
_ = try await xcodeTools.archive(projectDirectoryPath: newReferencePackageDirectory.path(), scheme: "ReferencePackage", projectType: .swiftPackage)
29+
_ = try await xcodeTools.archive(
30+
projectDirectoryPath: oldReferencePackageDirectory.path(),
31+
scheme: "ReferencePackage",
32+
projectType: .swiftPackage,
33+
platform: .iOS
34+
)
35+
_ = try await xcodeTools.archive(
36+
projectDirectoryPath: newReferencePackageDirectory.path(),
37+
scheme: "ReferencePackage",
38+
projectType: .swiftPackage,
39+
platform: .iOS
40+
)
3141
}
3242

3343
override static func tearDown() {

Tests/UnitTests/XcodeToolsTests.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class XcodeToolsTests: XCTestCase {
1717
try await testArchiving(
1818
projectDirectoryPath: projectDirectoryPath,
1919
scheme: scheme,
20-
projectType: .swiftPackage
20+
projectType: .swiftPackage,
21+
platform: .iOS
2122
)
2223
}
2324

@@ -29,7 +30,8 @@ class XcodeToolsTests: XCTestCase {
2930
try await testArchiving(
3031
projectDirectoryPath: projectDirectoryPath,
3132
scheme: scheme,
32-
projectType: .xcodeProject(scheme: scheme)
33+
projectType: .xcodeProject(scheme: scheme),
34+
platform: .iOS
3335
)
3436
}
3537
}
@@ -39,7 +41,8 @@ private extension XcodeToolsTests {
3941
func testArchiving(
4042
projectDirectoryPath: String,
4143
scheme: String,
42-
projectType: ProjectType
44+
projectType: ProjectType,
45+
platform: ProjectPlatform
4346
) async throws {
4447

4548
let archiveResult = "ARCHIVE_RESULT"
@@ -93,7 +96,8 @@ private extension XcodeToolsTests {
9396
let derivedDataPath = try await xcodeTools.archive(
9497
projectDirectoryPath: projectDirectoryPath,
9598
scheme: scheme,
96-
projectType: projectType
99+
projectType: projectType,
100+
platform: platform
97101
)
98102

99103
XCTAssertEqual(derivedDataPath, expectedDerivedDataPath)

0 commit comments

Comments
 (0)