Skip to content

Commit 9cbaeb7

Browse files
committed
Restore ExperimentsTests in the WooCommerce scheme unit tests
1 parent db33d72 commit 9cbaeb7

File tree

3 files changed

+115
-43
lines changed

3 files changed

+115
-43
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1630"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES"
8+
buildArchitectures = "Automatic">
9+
<BuildActionEntries>
10+
<BuildActionEntry
11+
buildForTesting = "YES"
12+
buildForRunning = "YES"
13+
buildForProfiling = "YES"
14+
buildForArchiving = "YES"
15+
buildForAnalyzing = "YES">
16+
<BuildableReference
17+
BuildableIdentifier = "primary"
18+
BlueprintIdentifier = "Experiments"
19+
BuildableName = "Experiments"
20+
BlueprintName = "Experiments"
21+
ReferencedContainer = "container:">
22+
</BuildableReference>
23+
</BuildActionEntry>
24+
</BuildActionEntries>
25+
</BuildAction>
26+
<TestAction
27+
buildConfiguration = "Debug"
28+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
29+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
30+
shouldUseLaunchSchemeArgsEnv = "YES">
31+
<TestPlans>
32+
<TestPlanReference
33+
reference = "container:Tests/ExperimentsTests/Experiments.xctestplan"
34+
default = "YES">
35+
</TestPlanReference>
36+
</TestPlans>
37+
</TestAction>
38+
<LaunchAction
39+
buildConfiguration = "Debug"
40+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
41+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42+
launchStyle = "0"
43+
useCustomWorkingDirectory = "NO"
44+
ignoresPersistentStateOnLaunch = "NO"
45+
debugDocumentVersioning = "YES"
46+
debugServiceExtension = "internal"
47+
allowLocationSimulation = "YES">
48+
</LaunchAction>
49+
<ProfileAction
50+
buildConfiguration = "Release"
51+
shouldUseLaunchSchemeArgsEnv = "YES"
52+
savedToolIdentifier = ""
53+
useCustomWorkingDirectory = "NO"
54+
debugDocumentVersioning = "YES">
55+
<MacroExpansion>
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "Experiments"
59+
BuildableName = "Experiments"
60+
BlueprintName = "Experiments"
61+
ReferencedContainer = "container:">
62+
</BuildableReference>
63+
</MacroExpansion>
64+
</ProfileAction>
65+
<AnalyzeAction
66+
buildConfiguration = "Debug">
67+
</AnalyzeAction>
68+
<ArchiveAction
69+
buildConfiguration = "Release"
70+
revealArchiveInOrganizer = "YES">
71+
</ArchiveAction>
72+
</Scheme>

Modules/Tests/ExperimentsTests/Experiments.xctestplan

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"testTargets" : [
1515
{
1616
"target" : {
17-
"containerPath" : "container:Experiments.xcodeproj",
18-
"identifier" : "0270C08927069A8900FC799F",
17+
"containerPath" : "container:",
18+
"identifier" : "ExperimentsTests",
1919
"name" : "ExperimentsTests"
2020
}
2121
}

WooCommerce/WooCommerceTests/UnitTests.xctestplan

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@
2929
"testRepetitionMode" : "retryOnFailure"
3030
},
3131
"testTargets" : [
32-
{
33-
"target" : {
34-
"containerPath" : "container:..\/Modules",
35-
"identifier" : "WooFoundationTests",
36-
"name" : "WooFoundationTests"
37-
}
38-
},
3932
{
4033
"target" : {
4134
"containerPath" : "container:..\/Modules",
@@ -45,32 +38,9 @@
4538
},
4639
{
4740
"target" : {
48-
"containerPath" : "container:..\/Modules",
49-
"identifier" : "WordPressSharedObjCTests",
50-
"name" : "WordPressSharedObjCTests"
51-
}
52-
},
53-
{
54-
"skippedTests" : [
55-
"InAppPurchasesOrderResultMapperTests",
56-
"InAppPurchasesOrderResultMapperTests\/test_iap_order_creation_is_decoded_from_json_response()",
57-
"InAppPurchasesProductsMapperTests",
58-
"InAppPurchasesRemoteTests",
59-
"InAppPurchasesRemoteTests\/test_load_products_returns_list_of_products()",
60-
"InAppPurchasesRemoteTests\/test_purchase_product_returns_created_order()",
61-
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_fails_to_retrieve_response_then_returns_network_error()",
62-
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_success_to_retrieve_response_and_transaction_is_handled_then_returns_siteID()",
63-
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_success_to_retrieve_response_and_transaction_is_not_handled_then_returns_errorResponse()",
64-
"InAppPurchasesTransactionMapperTests",
65-
"InAppPurchasesTransactionMapperTests\/test_iap_handled_transaction_is_decoded_from_json_response()",
66-
"InAppPurchasesTransactionMapperTests\/test_iap_unhandled_transaction_is_decoded_from_json_response()",
67-
"WCPayRemoteTests\/test_loadAccount_properly_handles_implicitly_not_eligible_for_card_present_payments()",
68-
"WCPayRemoteTests\/test_loadAccount_properly_handles_not_eligible_for_card_present_payments()"
69-
],
70-
"target" : {
71-
"containerPath" : "container:..\/Networking\/Networking.xcodeproj",
72-
"identifier" : "B557D9EB209753AA005962F4",
73-
"name" : "NetworkingTests"
41+
"containerPath" : "container:..\/Hardware\/Hardware.xcodeproj",
42+
"identifier" : "D88FDB0725DD216B00CB0DBD",
43+
"name" : "HardwareTests"
7444
}
7545
},
7646
{
@@ -82,9 +52,9 @@
8252
},
8353
{
8454
"target" : {
85-
"containerPath" : "container:..\/Yosemite\/Yosemite.xcodeproj",
86-
"identifier" : "B5C9DDFD2087FEC0006B910A",
87-
"name" : "YosemiteTests"
55+
"containerPath" : "container:..\/Modules",
56+
"identifier" : "WooFoundationTests",
57+
"name" : "WooFoundationTests"
8858
}
8959
},
9060
{
@@ -112,15 +82,38 @@
11282
},
11383
{
11484
"target" : {
115-
"containerPath" : "container:..\/Hardware\/Hardware.xcodeproj",
116-
"identifier" : "D88FDB0725DD216B00CB0DBD",
117-
"name" : "HardwareTests"
85+
"containerPath" : "container:..\/Yosemite\/Yosemite.xcodeproj",
86+
"identifier" : "B5C9DDFD2087FEC0006B910A",
87+
"name" : "YosemiteTests"
11888
}
11989
},
12090
{
91+
"skippedTests" : [
92+
"InAppPurchasesOrderResultMapperTests",
93+
"InAppPurchasesOrderResultMapperTests\/test_iap_order_creation_is_decoded_from_json_response()",
94+
"InAppPurchasesProductsMapperTests",
95+
"InAppPurchasesRemoteTests",
96+
"InAppPurchasesRemoteTests\/test_load_products_returns_list_of_products()",
97+
"InAppPurchasesRemoteTests\/test_purchase_product_returns_created_order()",
98+
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_fails_to_retrieve_response_then_returns_network_error()",
99+
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_success_to_retrieve_response_and_transaction_is_handled_then_returns_siteID()",
100+
"InAppPurchasesRemoteTests\/test_retrieveHandledTransactionSiteID_when_success_to_retrieve_response_and_transaction_is_not_handled_then_returns_errorResponse()",
101+
"InAppPurchasesTransactionMapperTests",
102+
"InAppPurchasesTransactionMapperTests\/test_iap_handled_transaction_is_decoded_from_json_response()",
103+
"InAppPurchasesTransactionMapperTests\/test_iap_unhandled_transaction_is_decoded_from_json_response()",
104+
"WCPayRemoteTests\/test_loadAccount_properly_handles_implicitly_not_eligible_for_card_present_payments()",
105+
"WCPayRemoteTests\/test_loadAccount_properly_handles_not_eligible_for_card_present_payments()"
106+
],
121107
"target" : {
122-
"containerPath" : "container:..\/Experiments\/Experiments.xcodeproj",
123-
"identifier" : "0270C08927069A8900FC799F",
108+
"containerPath" : "container:..\/Networking\/Networking.xcodeproj",
109+
"identifier" : "B557D9EB209753AA005962F4",
110+
"name" : "NetworkingTests"
111+
}
112+
},
113+
{
114+
"target" : {
115+
"containerPath" : "container:..\/Modules",
116+
"identifier" : "ExperimentsTests",
124117
"name" : "ExperimentsTests"
125118
}
126119
},
@@ -131,6 +124,13 @@
131124
"identifier" : "3F0904072D26A40800D8ACCE",
132125
"name" : "WordPressAuthenticatorTests"
133126
}
127+
},
128+
{
129+
"target" : {
130+
"containerPath" : "container:..\/Modules",
131+
"identifier" : "WordPressSharedObjCTests",
132+
"name" : "WordPressSharedObjCTests"
133+
}
134134
}
135135
],
136136
"version" : 1

0 commit comments

Comments
 (0)