Skip to content

Commit 8275c2a

Browse files
committed
AINFRA-781 - Make YosemiteTests into a Swift package test target
1 parent 915a045 commit 8275c2a

File tree

183 files changed

+104
-1401
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

+104
-1401
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"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1640"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
</BuildAction>
10+
<TestAction
11+
buildConfiguration = "Debug"
12+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
13+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
14+
shouldUseLaunchSchemeArgsEnv = "YES"
15+
shouldAutocreateTestPlan = "YES">
16+
<Testables>
17+
<TestableReference
18+
skipped = "NO">
19+
<BuildableReference
20+
BuildableIdentifier = "primary"
21+
BlueprintIdentifier = "YosemiteTests"
22+
BuildableName = "YosemiteTests"
23+
BlueprintName = "YosemiteTests"
24+
ReferencedContainer = "container:">
25+
</BuildableReference>
26+
</TestableReference>
27+
</Testables>
28+
</TestAction>
29+
<LaunchAction
30+
buildConfiguration = "Debug"
31+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
32+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
33+
launchStyle = "0"
34+
useCustomWorkingDirectory = "NO"
35+
ignoresPersistentStateOnLaunch = "NO"
36+
debugDocumentVersioning = "YES"
37+
debugServiceExtension = "internal"
38+
allowLocationSimulation = "YES">
39+
</LaunchAction>
40+
<ProfileAction
41+
buildConfiguration = "Release"
42+
shouldUseLaunchSchemeArgsEnv = "YES"
43+
savedToolIdentifier = ""
44+
useCustomWorkingDirectory = "NO"
45+
debugDocumentVersioning = "YES">
46+
</ProfileAction>
47+
<AnalyzeAction
48+
buildConfiguration = "Debug">
49+
</AnalyzeAction>
50+
<ArchiveAction
51+
buildConfiguration = "Release"
52+
revealArchiveInOrganizer = "YES">
53+
</ArchiveAction>
54+
</Scheme>

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)