Skip to content

Commit 552f49b

Browse files
committed
AINFRA-778 - Make StorageTests a Swift package test target
1 parent 1ba1d09 commit 552f49b

35 files changed

+42
-732
lines changed

Modules/.swiftpm/xcode/xcshareddata/xcschemes/Storage.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/StorageTests/StorageTests.xctestplan"
34+
default = "YES">
35+
</TestPlanReference>
36+
</TestPlans>
3237
</TestAction>
3338
<LaunchAction
3439
buildConfiguration = "Debug"

Modules/Package.swift

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,14 @@ let package = Package(
228228
"Hardware"
229229
]
230230
),
231+
.testTarget(
232+
name: "StorageTests",
233+
dependencies: [
234+
"Storage",
235+
"TestKit"
236+
],
237+
resources: [.process("Resources")]
238+
),
231239
.testTarget(
232240
name: "WooFoundationTests",
233241
dependencies: ["TestKit", .target(name: "WooFoundation")]
@@ -268,7 +276,6 @@ enum XcodeTargetNames {
268276
static let fakes = "Fakes"
269277
static let networkingTests = "NetworkingTests"
270278
static let notificationExtension = "NotificationExtension"
271-
static let storageTests = "StorageTests"
272279
static let storeWidgetsExtension = "StoreWidgetsExtension"
273280
static let uiTestsFoundation = "UITestsFoundation"
274281
static let wooCommerce = "WooCommerce"
@@ -286,7 +293,6 @@ enum XcodeSupport {
286293
[
287294
XcodeTargetNames.networkingTests,
288295
XcodeTargetNames.notificationExtension,
289-
XcodeTargetNames.storageTests,
290296
XcodeTargetNames.storeWidgetsExtension,
291297
XcodeTargetNames.uiTestsFoundation,
292298
XcodeTargetNames.wooCommerce,
@@ -323,13 +329,6 @@ enum XcodeSupport {
323329
.product(name: "KeychainAccess", package: "KeychainAccess"),
324330
]
325331
),
326-
.xcodeTarget(
327-
XcodeTargetNames.storageTests,
328-
dependencies: [
329-
"Storage",
330-
"TestKit"
331-
]
332-
),
333332
.xcodeTarget(
334333
XcodeTargetNames.storeWidgetsExtension,
335334
dependencies: [

Modules/Sources/XcodeSupport/XcodeTarget_StorageTests/Empty.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)