Skip to content

Commit 98d90ea

Browse files
committed
[tests] Configure 2 test plans for the Unit Test App
* The UnitTestApp which runs all tests now has 2 test plans named "Full" and "Reduced" * The default is the Full test * We may want to disable certain long-running tests from running in the CI under the Reduced plan * There are no tests disabled in this commit, only adding 2 identical test plans
1 parent 764eb71 commit 98d90ea

File tree

4 files changed

+190
-1
lines changed

4 files changed

+190
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,8 @@
12421242
3C8544B62C5AEFF600F542A9 /* OneSignalOSCoreMocks.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OneSignalOSCoreMocks.framework; sourceTree = BUILT_PRODUCTS_DIR; };
12431243
3C8544B82C5AEFF700F542A9 /* OneSignalOSCoreMocks.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OneSignalOSCoreMocks.h; sourceTree = "<group>"; };
12441244
3C8544C22C5AF18B00F542A9 /* OSCoreMocks.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSCoreMocks.swift; sourceTree = "<group>"; };
1245+
3C8544CB2C5AFCA700F542A9 /* UnitTestApp_TestPlan_Full.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UnitTestApp_TestPlan_Full.xctestplan; sourceTree = "<group>"; };
1246+
3C8544CC2C5AFCC300F542A9 /* UnitTestApp_TestPlan_Reduced.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = UnitTestApp_TestPlan_Reduced.xctestplan; sourceTree = "<group>"; };
12451247
3C87066F2BDE0957000D8CD2 /* MockUserRequests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockUserRequests.swift; sourceTree = "<group>"; };
12461248
3C8706712BDEE076000D8CD2 /* MockUserDefines.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockUserDefines.swift; sourceTree = "<group>"; };
12471249
3C8706752BDEED75000D8CD2 /* NSDictionary+UnitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSDictionary+UnitTests.swift"; sourceTree = "<group>"; };
@@ -2876,6 +2878,8 @@
28762878
DEF5CCF22539321A0003E9CC /* UnitTestApp */ = {
28772879
isa = PBXGroup;
28782880
children = (
2881+
3C8544CB2C5AFCA700F542A9 /* UnitTestApp_TestPlan_Full.xctestplan */,
2882+
3C8544CC2C5AFCC300F542A9 /* UnitTestApp_TestPlan_Reduced.xctestplan */,
28792883
DEF5CD6A253935720003E9CC /* UnitTestApp.entitlements */,
28802884
DEF5CCF32539321A0003E9CC /* AppDelegate.h */,
28812885
DEF5CCF42539321A0003E9CC /* AppDelegate.m */,

iOS_SDK/OneSignalSDK/OneSignal.xcodeproj/xcshareddata/xcschemes/UnitTestApp.xcscheme

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
33
LastUpgradeVersion = "1200"
4-
version = "1.3">
4+
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"
77
buildImplicitDependencies = "YES">
@@ -143,6 +143,15 @@
143143
ReferencedContainer = "container:OneSignal.xcodeproj">
144144
</BuildableReference>
145145
</CodeCoverageTargets>
146+
<TestPlans>
147+
<TestPlanReference
148+
reference = "container:UnitTestApp/UnitTestApp_TestPlan_Full.xctestplan"
149+
default = "YES">
150+
</TestPlanReference>
151+
<TestPlanReference
152+
reference = "container:UnitTestApp/UnitTestApp_TestPlan_Reduced.xctestplan">
153+
</TestPlanReference>
154+
</TestPlans>
146155
<Testables>
147156
<TestableReference
148157
skipped = "NO">
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "916FBCB8-539B-42E8-8BE2-4BBBD8D90F11",
5+
"name" : "Configuration 1",
6+
"options" : {
7+
8+
}
9+
}
10+
],
11+
"defaultOptions" : {
12+
"codeCoverage" : {
13+
"targets" : [
14+
{
15+
"containerPath" : "container:OneSignal.xcodeproj",
16+
"identifier" : "911E2CB91E398AB3003112A4",
17+
"name" : "UnitTests"
18+
},
19+
{
20+
"containerPath" : "container:OneSignal.xcodeproj",
21+
"identifier" : "DE7D17E527026B95002D3A5D",
22+
"name" : "OneSignalCore"
23+
},
24+
{
25+
"containerPath" : "container:OneSignal.xcodeproj",
26+
"identifier" : "DE7D17F827026BA3002D3A5D",
27+
"name" : "OneSignalExtension"
28+
},
29+
{
30+
"containerPath" : "container:OneSignal.xcodeproj",
31+
"identifier" : "3E2400371D4FFC31008BDE70",
32+
"name" : "OneSignalFramework"
33+
},
34+
{
35+
"containerPath" : "container:OneSignal.xcodeproj",
36+
"identifier" : "3C115160289A259500565C41",
37+
"name" : "OneSignalOSCore"
38+
},
39+
{
40+
"containerPath" : "container:OneSignal.xcodeproj",
41+
"identifier" : "DE7D187F27037F43002D3A5D",
42+
"name" : "OneSignalOutcomes"
43+
},
44+
{
45+
"containerPath" : "container:OneSignal.xcodeproj",
46+
"identifier" : "DE69E19A282ED8060090BB3D",
47+
"name" : "OneSignalUser"
48+
},
49+
{
50+
"containerPath" : "container:OneSignal.xcodeproj",
51+
"identifier" : "3CC063EA2B6D7FE8002BB07F",
52+
"name" : "OneSignalUserTests"
53+
},
54+
{
55+
"containerPath" : "container:OneSignal.xcodeproj",
56+
"identifier" : "3CC063A02B6D7A8D002BB07F",
57+
"name" : "OneSignalCoreTests"
58+
},
59+
{
60+
"containerPath" : "container:OneSignal.xcodeproj",
61+
"identifier" : "DEBA2A192C20E35E00E234DB",
62+
"name" : "OneSignalNotificationsTests"
63+
}
64+
]
65+
},
66+
"targetForVariableExpansion" : {
67+
"containerPath" : "container:OneSignal.xcodeproj",
68+
"identifier" : "DEF5CCF02539321A0003E9CC",
69+
"name" : "UnitTestApp"
70+
}
71+
},
72+
"testTargets" : [
73+
{
74+
"target" : {
75+
"containerPath" : "container:OneSignal.xcodeproj",
76+
"identifier" : "911E2CB91E398AB3003112A4",
77+
"name" : "UnitTests"
78+
}
79+
},
80+
{
81+
"target" : {
82+
"containerPath" : "container:OneSignal.xcodeproj",
83+
"identifier" : "3CC063A02B6D7A8D002BB07F",
84+
"name" : "OneSignalCoreTests"
85+
}
86+
},
87+
{
88+
"target" : {
89+
"containerPath" : "container:OneSignal.xcodeproj",
90+
"identifier" : "3CC063EA2B6D7FE8002BB07F",
91+
"name" : "OneSignalUserTests"
92+
}
93+
},
94+
{
95+
"target" : {
96+
"containerPath" : "container:OneSignal.xcodeproj",
97+
"identifier" : "473542492B8F93330016DB4C",
98+
"name" : "OneSignalLiveActivitiesTests"
99+
}
100+
},
101+
{
102+
"target" : {
103+
"containerPath" : "container:OneSignal.xcodeproj",
104+
"identifier" : "DEBA2A192C20E35E00E234DB",
105+
"name" : "OneSignalNotificationsTests"
106+
}
107+
},
108+
{
109+
"target" : {
110+
"containerPath" : "container:OneSignal.xcodeproj",
111+
"identifier" : "3C01518D2C2E298E0079E076",
112+
"name" : "OneSignalInAppMessagesTests"
113+
}
114+
}
115+
],
116+
"version" : 1
117+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"configurations" : [
3+
{
4+
"id" : "8253BCEA-8327-4C5E-9C87-76E08A0CA354",
5+
"name" : "Configuration 1",
6+
"options" : {
7+
8+
}
9+
}
10+
],
11+
"defaultOptions" : {
12+
13+
},
14+
"testTargets" : [
15+
{
16+
"target" : {
17+
"containerPath" : "container:OneSignal.xcodeproj",
18+
"identifier" : "3CC063A02B6D7A8D002BB07F",
19+
"name" : "OneSignalCoreTests"
20+
}
21+
},
22+
{
23+
"target" : {
24+
"containerPath" : "container:OneSignal.xcodeproj",
25+
"identifier" : "3C01518D2C2E298E0079E076",
26+
"name" : "OneSignalInAppMessagesTests"
27+
}
28+
},
29+
{
30+
"target" : {
31+
"containerPath" : "container:OneSignal.xcodeproj",
32+
"identifier" : "473542492B8F93330016DB4C",
33+
"name" : "OneSignalLiveActivitiesTests"
34+
}
35+
},
36+
{
37+
"target" : {
38+
"containerPath" : "container:OneSignal.xcodeproj",
39+
"identifier" : "DEBA2A192C20E35E00E234DB",
40+
"name" : "OneSignalNotificationsTests"
41+
}
42+
},
43+
{
44+
"target" : {
45+
"containerPath" : "container:OneSignal.xcodeproj",
46+
"identifier" : "3CC063EA2B6D7FE8002BB07F",
47+
"name" : "OneSignalUserTests"
48+
}
49+
},
50+
{
51+
"target" : {
52+
"containerPath" : "container:OneSignal.xcodeproj",
53+
"identifier" : "911E2CB91E398AB3003112A4",
54+
"name" : "UnitTests"
55+
}
56+
}
57+
],
58+
"version" : 1
59+
}

0 commit comments

Comments
 (0)