Skip to content

Commit f233742

Browse files
committed
Add unit test target
1 parent 15dcfb5 commit f233742

File tree

3 files changed

+182
-0
lines changed

3 files changed

+182
-0
lines changed

Action.xcodeproj/project.pbxproj

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,38 @@
1010
7F5E6A601D7F06C4000B6076 /* RxBlocking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A5D1D7F06C4000B6076 /* RxBlocking.framework */; };
1111
7F5E6A611D7F06C4000B6076 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A5E1D7F06C4000B6076 /* RxCocoa.framework */; };
1212
7F5E6A621D7F06C4000B6076 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A5F1D7F06C4000B6076 /* RxSwift.framework */; };
13+
7F5E6A6C1D7F08D2000B6076 /* Action.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE73AD201CDCD101006F8B98 /* Action.framework */; };
14+
7F5E6A761D7F08F9000B6076 /* Quick.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A721D7F08F9000B6076 /* Quick.framework */; };
15+
7F5E6A771D7F08F9000B6076 /* RxBlocking.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A731D7F08F9000B6076 /* RxBlocking.framework */; };
16+
7F5E6A781D7F08F9000B6076 /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A741D7F08F9000B6076 /* RxCocoa.framework */; };
17+
7F5E6A791D7F08F9000B6076 /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7F5E6A751D7F08F9000B6076 /* RxSwift.framework */; };
1318
BE73AD241CDCD102006F8B98 /* Action.h in Headers */ = {isa = PBXBuildFile; fileRef = BE73AD231CDCD102006F8B98 /* Action.h */; settings = {ATTRIBUTES = (Public, ); }; };
1419
BE73AD371CDCEAE0006F8B98 /* Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE73AD331CDCEAE0006F8B98 /* Action.swift */; };
1520
BE73AD381CDCEAE0006F8B98 /* AlertAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE73AD341CDCEAE0006F8B98 /* AlertAction.swift */; };
1621
BE73AD391CDCEAE0006F8B98 /* UIBarButtonItem+Action.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE73AD351CDCEAE0006F8B98 /* UIBarButtonItem+Action.swift */; };
1722
BE73AD3A1CDCEAE0006F8B98 /* UIButton+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE73AD361CDCEAE0006F8B98 /* UIButton+Rx.swift */; };
1823
/* End PBXBuildFile section */
1924

25+
/* Begin PBXContainerItemProxy section */
26+
7F5E6A6D1D7F08D2000B6076 /* PBXContainerItemProxy */ = {
27+
isa = PBXContainerItemProxy;
28+
containerPortal = BE73AD171CDCD101006F8B98 /* Project object */;
29+
proxyType = 1;
30+
remoteGlobalIDString = BE73AD1F1CDCD101006F8B98;
31+
remoteInfo = Action;
32+
};
33+
/* End PBXContainerItemProxy section */
34+
2035
/* Begin PBXFileReference section */
36+
7F53BBE11D7F0B140098EC20 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2137
7F5E6A5D1D7F06C4000B6076 /* RxBlocking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxBlocking.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxBlocking.framework"; sourceTree = "<group>"; };
2238
7F5E6A5E1D7F06C4000B6076 /* RxCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxCocoa.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxCocoa.framework"; sourceTree = "<group>"; };
2339
7F5E6A5F1D7F06C4000B6076 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxSwift.framework"; sourceTree = "<group>"; };
40+
7F5E6A671D7F08D2000B6076 /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
41+
7F5E6A721D7F08F9000B6076 /* Quick.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Quick.framework; path = "Carthage/Checkouts/Quick/build/Debug-iphoneos/Quick.framework"; sourceTree = "<group>"; };
42+
7F5E6A731D7F08F9000B6076 /* RxBlocking.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxBlocking.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxBlocking.framework"; sourceTree = "<group>"; };
43+
7F5E6A741D7F08F9000B6076 /* RxCocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxCocoa.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxCocoa.framework"; sourceTree = "<group>"; };
44+
7F5E6A751D7F08F9000B6076 /* RxSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = RxSwift.framework; path = "Carthage/Checkouts/RxSwift/build/Debug-iphoneos/RxSwift.framework"; sourceTree = "<group>"; };
2445
BE73AD201CDCD101006F8B98 /* Action.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Action.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2546
BE73AD231CDCD102006F8B98 /* Action.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Action.h; sourceTree = "<group>"; };
2647
BE73AD251CDCD102006F8B98 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -31,6 +52,18 @@
3152
/* End PBXFileReference section */
3253

3354
/* Begin PBXFrameworksBuildPhase section */
55+
7F5E6A641D7F08D2000B6076 /* Frameworks */ = {
56+
isa = PBXFrameworksBuildPhase;
57+
buildActionMask = 2147483647;
58+
files = (
59+
7F5E6A761D7F08F9000B6076 /* Quick.framework in Frameworks */,
60+
7F5E6A771D7F08F9000B6076 /* RxBlocking.framework in Frameworks */,
61+
7F5E6A781D7F08F9000B6076 /* RxCocoa.framework in Frameworks */,
62+
7F5E6A791D7F08F9000B6076 /* RxSwift.framework in Frameworks */,
63+
7F5E6A6C1D7F08D2000B6076 /* Action.framework in Frameworks */,
64+
);
65+
runOnlyForDeploymentPostprocessing = 0;
66+
};
3467
BE73AD1C1CDCD101006F8B98 /* Frameworks */ = {
3568
isa = PBXFrameworksBuildPhase;
3669
buildActionMask = 2147483647;
@@ -44,20 +77,41 @@
4477
/* End PBXFrameworksBuildPhase section */
4578

4679
/* Begin PBXGroup section */
80+
7F53BBE01D7F0B140098EC20 /* Action */ = {
81+
isa = PBXGroup;
82+
children = (
83+
7F53BBE11D7F0B140098EC20 /* Info.plist */,
84+
);
85+
path = Action;
86+
sourceTree = "<group>";
87+
};
4788
7F5E6A5C1D7F06C4000B6076 /* Frameworks */ = {
4889
isa = PBXGroup;
4990
children = (
91+
7F5E6A721D7F08F9000B6076 /* Quick.framework */,
92+
7F5E6A731D7F08F9000B6076 /* RxBlocking.framework */,
93+
7F5E6A741D7F08F9000B6076 /* RxCocoa.framework */,
94+
7F5E6A751D7F08F9000B6076 /* RxSwift.framework */,
5095
7F5E6A5D1D7F06C4000B6076 /* RxBlocking.framework */,
5196
7F5E6A5E1D7F06C4000B6076 /* RxCocoa.framework */,
5297
7F5E6A5F1D7F06C4000B6076 /* RxSwift.framework */,
5398
);
5499
name = Frameworks;
55100
sourceTree = "<group>";
56101
};
102+
7F5E6A681D7F08D2000B6076 /* Tests */ = {
103+
isa = PBXGroup;
104+
children = (
105+
7F53BBE01D7F0B140098EC20 /* Action */,
106+
);
107+
path = Tests;
108+
sourceTree = "<group>";
109+
};
57110
BE73AD161CDCD101006F8B98 = {
58111
isa = PBXGroup;
59112
children = (
60113
BE73AD221CDCD102006F8B98 /* Action */,
114+
7F5E6A681D7F08D2000B6076 /* Tests */,
61115
BE73AD211CDCD101006F8B98 /* Products */,
62116
7F5E6A5C1D7F06C4000B6076 /* Frameworks */,
63117
);
@@ -67,6 +121,7 @@
67121
isa = PBXGroup;
68122
children = (
69123
BE73AD201CDCD101006F8B98 /* Action.framework */,
124+
7F5E6A671D7F08D2000B6076 /* Tests.xctest */,
70125
);
71126
name = Products;
72127
sourceTree = "<group>";
@@ -98,6 +153,24 @@
98153
/* End PBXHeadersBuildPhase section */
99154

100155
/* Begin PBXNativeTarget section */
156+
7F5E6A661D7F08D2000B6076 /* Tests */ = {
157+
isa = PBXNativeTarget;
158+
buildConfigurationList = 7F5E6A6F1D7F08D2000B6076 /* Build configuration list for PBXNativeTarget "Tests" */;
159+
buildPhases = (
160+
7F5E6A631D7F08D2000B6076 /* Sources */,
161+
7F5E6A641D7F08D2000B6076 /* Frameworks */,
162+
7F5E6A651D7F08D2000B6076 /* Resources */,
163+
);
164+
buildRules = (
165+
);
166+
dependencies = (
167+
7F5E6A6E1D7F08D2000B6076 /* PBXTargetDependency */,
168+
);
169+
name = Tests;
170+
productName = Tests;
171+
productReference = 7F5E6A671D7F08D2000B6076 /* Tests.xctest */;
172+
productType = "com.apple.product-type.bundle.unit-test";
173+
};
101174
BE73AD1F1CDCD101006F8B98 /* Action */ = {
102175
isa = PBXNativeTarget;
103176
buildConfigurationList = BE73AD281CDCD102006F8B98 /* Build configuration list for PBXNativeTarget "Action" */;
@@ -122,9 +195,14 @@
122195
BE73AD171CDCD101006F8B98 /* Project object */ = {
123196
isa = PBXProject;
124197
attributes = {
198+
LastSwiftUpdateCheck = 0800;
125199
LastUpgradeCheck = 0800;
126200
ORGANIZATIONNAME = CezaryKopacz;
127201
TargetAttributes = {
202+
7F5E6A661D7F08D2000B6076 = {
203+
CreatedOnToolsVersion = 8.0;
204+
ProvisioningStyle = Automatic;
205+
};
128206
BE73AD1F1CDCD101006F8B98 = {
129207
CreatedOnToolsVersion = 7.3;
130208
LastSwiftMigration = 0800;
@@ -144,11 +222,19 @@
144222
projectRoot = "";
145223
targets = (
146224
BE73AD1F1CDCD101006F8B98 /* Action */,
225+
7F5E6A661D7F08D2000B6076 /* Tests */,
147226
);
148227
};
149228
/* End PBXProject section */
150229

151230
/* Begin PBXResourcesBuildPhase section */
231+
7F5E6A651D7F08D2000B6076 /* Resources */ = {
232+
isa = PBXResourcesBuildPhase;
233+
buildActionMask = 2147483647;
234+
files = (
235+
);
236+
runOnlyForDeploymentPostprocessing = 0;
237+
};
152238
BE73AD1E1CDCD101006F8B98 /* Resources */ = {
153239
isa = PBXResourcesBuildPhase;
154240
buildActionMask = 2147483647;
@@ -159,6 +245,13 @@
159245
/* End PBXResourcesBuildPhase section */
160246

161247
/* Begin PBXSourcesBuildPhase section */
248+
7F5E6A631D7F08D2000B6076 /* Sources */ = {
249+
isa = PBXSourcesBuildPhase;
250+
buildActionMask = 2147483647;
251+
files = (
252+
);
253+
runOnlyForDeploymentPostprocessing = 0;
254+
};
162255
BE73AD1B1CDCD101006F8B98 /* Sources */ = {
163256
isa = PBXSourcesBuildPhase;
164257
buildActionMask = 2147483647;
@@ -172,7 +265,46 @@
172265
};
173266
/* End PBXSourcesBuildPhase section */
174267

268+
/* Begin PBXTargetDependency section */
269+
7F5E6A6E1D7F08D2000B6076 /* PBXTargetDependency */ = {
270+
isa = PBXTargetDependency;
271+
target = BE73AD1F1CDCD101006F8B98 /* Action */;
272+
targetProxy = 7F5E6A6D1D7F08D2000B6076 /* PBXContainerItemProxy */;
273+
};
274+
/* End PBXTargetDependency section */
275+
175276
/* Begin XCBuildConfiguration section */
277+
7F5E6A701D7F08D2000B6076 /* Debug */ = {
278+
isa = XCBuildConfiguration;
279+
buildSettings = {
280+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
281+
CLANG_WARN_SUSPICIOUS_MOVES = YES;
282+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
283+
INFOPLIST_FILE = Tests/Action/Info.plist;
284+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
285+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
286+
PRODUCT_BUNDLE_IDENTIFIER = "-.Tests";
287+
PRODUCT_NAME = "$(TARGET_NAME)";
288+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
289+
SWIFT_VERSION = 2.3;
290+
};
291+
name = Debug;
292+
};
293+
7F5E6A711D7F08D2000B6076 /* Release */ = {
294+
isa = XCBuildConfiguration;
295+
buildSettings = {
296+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
297+
CLANG_WARN_SUSPICIOUS_MOVES = YES;
298+
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
299+
INFOPLIST_FILE = Tests/Action/Info.plist;
300+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
301+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
302+
PRODUCT_BUNDLE_IDENTIFIER = "-.Tests";
303+
PRODUCT_NAME = "$(TARGET_NAME)";
304+
SWIFT_VERSION = 2.3;
305+
};
306+
name = Release;
307+
};
176308
BE73AD261CDCD102006F8B98 /* Debug */ = {
177309
isa = XCBuildConfiguration;
178310
buildSettings = {
@@ -313,6 +445,15 @@
313445
/* End XCBuildConfiguration section */
314446

315447
/* Begin XCConfigurationList section */
448+
7F5E6A6F1D7F08D2000B6076 /* Build configuration list for PBXNativeTarget "Tests" */ = {
449+
isa = XCConfigurationList;
450+
buildConfigurations = (
451+
7F5E6A701D7F08D2000B6076 /* Debug */,
452+
7F5E6A711D7F08D2000B6076 /* Release */,
453+
);
454+
defaultConfigurationIsVisible = 0;
455+
defaultConfigurationName = Release;
456+
};
316457
BE73AD1A1CDCD101006F8B98 /* Build configuration list for PBXProject "Action" */ = {
317458
isa = XCConfigurationList;
318459
buildConfigurations = (

Action.xcodeproj/xcshareddata/xcschemes/Action.xcscheme

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,26 @@
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "7F5E6A661D7F08D2000B6076"
36+
BuildableName = "Tests.xctest"
37+
BlueprintName = "Tests"
38+
ReferencedContainer = "container:Action.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
3141
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "BE73AD1F1CDCD101006F8B98"
46+
BuildableName = "Action.framework"
47+
BlueprintName = "Action"
48+
ReferencedContainer = "container:Action.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
3251
<AdditionalOptions>
3352
</AdditionalOptions>
3453
</TestAction>

Tests/Action/Info.plist

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>

0 commit comments

Comments
 (0)