Skip to content

Commit 38cdac3

Browse files
committed
AINFRA-781 - Make YosemiteTests into a Swift package test target
1 parent 63f0810 commit 38cdac3

File tree

183 files changed

+79
-1427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+79
-1427
lines changed

Modules/.swiftpm/xcode/xcshareddata/xcschemes/Yosemite.xcscheme

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@
2727
buildConfiguration = "Debug"
2828
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2929
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30-
shouldUseLaunchSchemeArgsEnv = "YES"
31-
shouldAutocreateTestPlan = "YES">
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<TestPlans>
32+
<TestPlanReference
33+
reference = "container:Tests/YosemiteTests/YosemiteTests.xctestplan"
34+
default = "YES">
35+
</TestPlanReference>
36+
</TestPlans>
3237
</TestAction>
3338
<LaunchAction
3439
buildConfiguration = "Debug"

Modules/Package.swift

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@ let package = Package(
266266
dependencies: [.target(name: "WordPressShared")],
267267
resources: [.process("Resources")]
268268
),
269+
.testTarget(
270+
name: "YosemiteTests",
271+
dependencies: [
272+
"Codegen",
273+
"Fakes",
274+
"TestKit",
275+
"WooFoundation",
276+
"WordPressShared",
277+
"Yosemite"
278+
],
279+
resources: [
280+
.process("Resources"),
281+
.process("../NetworkingTests/Responses")
282+
]
283+
)
269284
]
270285
)
271286

@@ -297,7 +312,6 @@ enum XcodeTargetNames {
297312
static let wooCommerceWatchApp = "Woo Watch App"
298313
static let wordPressAuthenticator = "WordPressAuthenticator"
299314
static let wordPressAuthenticatorTests = "WordPressAuthenticatorTests"
300-
static let yosemiteTests = "YosemiteTests"
301315
}
302316

303317
enum XcodeSupport {
@@ -313,7 +327,6 @@ enum XcodeSupport {
313327
XcodeTargetNames.wooCommerceWatchApp,
314328
XcodeTargetNames.wordPressAuthenticator,
315329
XcodeTargetNames.wordPressAuthenticatorTests,
316-
XcodeTargetNames.yosemiteTests
317330
].map { .supportingProduct(forXcodeTarget: $0) }
318331
}
319332

@@ -439,17 +452,6 @@ enum XcodeSupport {
439452
XcodeTargetNames.wordPressAuthenticator.asDependency,
440453
]
441454
),
442-
.xcodeTarget(
443-
XcodeTargetNames.yosemiteTests,
444-
dependencies: [
445-
"Codegen",
446-
"Fakes",
447-
"TestKit",
448-
"WooFoundation",
449-
"WordPressShared",
450-
"Yosemite"
451-
]
452-
)
453455
]
454456
}
455457
}

0 commit comments

Comments
 (0)