Skip to content

Commit 80dd2a5

Browse files
committed
Adds tests.
1 parent 7a5ae0b commit 80dd2a5

File tree

3 files changed

+175
-1
lines changed

3 files changed

+175
-1
lines changed

RxDataSources.xcodeproj/project.pbxproj

Lines changed: 118 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
C814E8F71D29DB4F00837FE1 /* String+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C814E8F41D29DB4F00837FE1 /* String+IdentifiableType.swift */; };
4040
C8153A501CC6C2F40050C990 /* Example1_CustomizationUsingTableViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8153A4F1CC6C2F40050C990 /* Example1_CustomizationUsingTableViewDelegate.swift */; };
4141
C8153A511CC6C2F70050C990 /* Example1_CustomizationUsingTableViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8153A4F1CC6C2F40050C990 /* Example1_CustomizationUsingTableViewDelegate.swift */; };
42+
C81905B11DEA019100AE679C /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C81905B01DEA019100AE679C /* Tests.swift */; };
43+
C81905B31DEA019100AE679C /* RxDataSources.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C8BB76811C4C3E53002B21C8 /* RxDataSources.framework */; };
4244
C8477FB91D29DBC90074454A /* IntegerType+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8477FB81D29DBC90074454A /* IntegerType+IdentifiableType.swift */; };
4345
C8477FBA1D29DBC90074454A /* IntegerType+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8477FB81D29DBC90074454A /* IntegerType+IdentifiableType.swift */; };
4446
C8477FBB1D29DBC90074454A /* IntegerType+IdentifiableType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8477FB81D29DBC90074454A /* IntegerType+IdentifiableType.swift */; };
@@ -128,6 +130,13 @@
128130
/* End PBXBuildFile section */
129131

130132
/* Begin PBXContainerItemProxy section */
133+
C81905B41DEA019100AE679C /* PBXContainerItemProxy */ = {
134+
isa = PBXContainerItemProxy;
135+
containerPortal = C8984C511C36AF35001E4272 /* Project object */;
136+
proxyType = 1;
137+
remoteGlobalIDString = C8BB765D1C4C3E53002B21C8;
138+
remoteInfo = RxDataSources;
139+
};
131140
C8984CB61C36B723001E4272 /* PBXContainerItemProxy */ = {
132141
isa = PBXContainerItemProxy;
133142
containerPortal = C8984C511C36AF35001E4272 /* Project object */;
@@ -197,6 +206,9 @@
197206
B472785F652B32605A7A6838 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = "<group>"; };
198207
C814E8F41D29DB4F00837FE1 /* String+IdentifiableType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+IdentifiableType.swift"; sourceTree = "<group>"; };
199208
C8153A4F1CC6C2F40050C990 /* Example1_CustomizationUsingTableViewDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Example1_CustomizationUsingTableViewDelegate.swift; sourceTree = "<group>"; };
209+
C81905AE1DEA019100AE679C /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
210+
C81905B01DEA019100AE679C /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
211+
C81905B21DEA019100AE679C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
200212
C8477FB81D29DBC90074454A /* IntegerType+IdentifiableType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "IntegerType+IdentifiableType.swift"; sourceTree = "<group>"; };
201213
C8477FBC1D29DCE20074454A /* FloatingPointType+IdentifiableType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "FloatingPointType+IdentifiableType.swift"; sourceTree = "<group>"; };
202214
C85EE5481C36F1FC0090614D /* Changeset.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Changeset.swift; sourceTree = "<group>"; };
@@ -251,6 +263,14 @@
251263
);
252264
runOnlyForDeploymentPostprocessing = 0;
253265
};
266+
C81905AB1DEA019100AE679C /* Frameworks */ = {
267+
isa = PBXFrameworksBuildPhase;
268+
buildActionMask = 2147483647;
269+
files = (
270+
C81905B31DEA019100AE679C /* RxDataSources.framework in Frameworks */,
271+
);
272+
runOnlyForDeploymentPostprocessing = 0;
273+
};
254274
C8984C561C36AF35001E4272 /* Frameworks */ = {
255275
isa = PBXFrameworksBuildPhase;
256276
buildActionMask = 2147483647;
@@ -356,6 +376,15 @@
356376
name = Frameworks;
357377
sourceTree = "<group>";
358378
};
379+
C81905AF1DEA019100AE679C /* Tests */ = {
380+
isa = PBXGroup;
381+
children = (
382+
C81905B01DEA019100AE679C /* Tests.swift */,
383+
C81905B21DEA019100AE679C /* Info.plist */,
384+
);
385+
path = Tests;
386+
sourceTree = "<group>";
387+
};
359388
C85EE5461C36F1FC0090614D /* Sources */ = {
360389
isa = PBXGroup;
361390
children = (
@@ -420,6 +449,7 @@
420449
C8984C5C1C36AF35001E4272 /* RxDataSources */,
421450
C8984C9C1C36B6FA001E4272 /* Example */,
422451
C8984CB21C36B723001E4272 /* ExampleUITests */,
452+
C81905AF1DEA019100AE679C /* Tests */,
423453
C8984C5B1C36AF35001E4272 /* Products */,
424454
0B778FC06BA7DEC5E2561D41 /* Dependency Frameworks */,
425455
BFEBA1123C920BFF3E655630 /* Frameworks */,
@@ -436,6 +466,7 @@
436466
9FCDA1631C3AF49A000F5F94 /* RxDataSources.framework */,
437467
C8BB765B1C4C3DD4002B21C8 /* Example-Carthage.app */,
438468
C8BB76811C4C3E53002B21C8 /* RxDataSources.framework */,
469+
C81905AE1DEA019100AE679C /* Tests.xctest */,
439470
);
440471
name = Products;
441472
sourceTree = "<group>";
@@ -523,6 +554,24 @@
523554
productReference = 9FCDA1631C3AF49A000F5F94 /* RxDataSources.framework */;
524555
productType = "com.apple.product-type.framework";
525556
};
557+
C81905AD1DEA019100AE679C /* Tests */ = {
558+
isa = PBXNativeTarget;
559+
buildConfigurationList = C81905B81DEA019100AE679C /* Build configuration list for PBXNativeTarget "Tests" */;
560+
buildPhases = (
561+
C81905AA1DEA019100AE679C /* Sources */,
562+
C81905AB1DEA019100AE679C /* Frameworks */,
563+
C81905AC1DEA019100AE679C /* Resources */,
564+
);
565+
buildRules = (
566+
);
567+
dependencies = (
568+
C81905B51DEA019100AE679C /* PBXTargetDependency */,
569+
);
570+
name = Tests;
571+
productName = Tests;
572+
productReference = C81905AE1DEA019100AE679C /* Tests.xctest */;
573+
productType = "com.apple.product-type.bundle.unit-test";
574+
};
526575
C8984C591C36AF35001E4272 /* RxDataSources-iOS */ = {
527576
isa = PBXNativeTarget;
528577
buildConfigurationList = C8984C621C36AF35001E4272 /* Build configuration list for PBXNativeTarget "RxDataSources-iOS" */;
@@ -626,13 +675,18 @@
626675
C8984C511C36AF35001E4272 /* Project object */ = {
627676
isa = PBXProject;
628677
attributes = {
629-
LastSwiftUpdateCheck = 0720;
678+
LastSwiftUpdateCheck = 0810;
630679
LastUpgradeCheck = 0800;
631680
ORGANIZATIONNAME = kzaher;
632681
TargetAttributes = {
633682
9FCDA1621C3AF49A000F5F94 = {
634683
CreatedOnToolsVersion = 7.2;
635684
};
685+
C81905AD1DEA019100AE679C = {
686+
CreatedOnToolsVersion = 8.1;
687+
DevelopmentTeam = 783T66X79Y;
688+
ProvisioningStyle = Automatic;
689+
};
636690
C8984C591C36AF35001E4272 = {
637691
CreatedOnToolsVersion = 7.2;
638692
};
@@ -664,6 +718,7 @@
664718
C8984C9A1C36B6FA001E4272 /* Example */,
665719
C8984CB01C36B723001E4272 /* ExampleUITests */,
666720
C8BB76401C4C3DD4002B21C8 /* Example-Carthage */,
721+
C81905AD1DEA019100AE679C /* Tests */,
667722
);
668723
};
669724
/* End PBXProject section */
@@ -676,6 +731,13 @@
676731
);
677732
runOnlyForDeploymentPostprocessing = 0;
678733
};
734+
C81905AC1DEA019100AE679C /* Resources */ = {
735+
isa = PBXResourcesBuildPhase;
736+
buildActionMask = 2147483647;
737+
files = (
738+
);
739+
runOnlyForDeploymentPostprocessing = 0;
740+
};
679741
C8984C581C36AF35001E4272 /* Resources */ = {
680742
isa = PBXResourcesBuildPhase;
681743
buildActionMask = 2147483647;
@@ -829,6 +891,14 @@
829891
);
830892
runOnlyForDeploymentPostprocessing = 0;
831893
};
894+
C81905AA1DEA019100AE679C /* Sources */ = {
895+
isa = PBXSourcesBuildPhase;
896+
buildActionMask = 2147483647;
897+
files = (
898+
C81905B11DEA019100AE679C /* Tests.swift in Sources */,
899+
);
900+
runOnlyForDeploymentPostprocessing = 0;
901+
};
832902
C8984C551C36AF35001E4272 /* Sources */ = {
833903
isa = PBXSourcesBuildPhase;
834904
buildActionMask = 2147483647;
@@ -938,6 +1008,11 @@
9381008
/* End PBXSourcesBuildPhase section */
9391009

9401010
/* Begin PBXTargetDependency section */
1011+
C81905B51DEA019100AE679C /* PBXTargetDependency */ = {
1012+
isa = PBXTargetDependency;
1013+
target = C8BB765D1C4C3E53002B21C8 /* RxDataSources */;
1014+
targetProxy = C81905B41DEA019100AE679C /* PBXContainerItemProxy */;
1015+
};
9411016
C8984CB71C36B723001E4272 /* PBXTargetDependency */ = {
9421017
isa = PBXTargetDependency;
9431018
target = C8984C9A1C36B6FA001E4272 /* Example */;
@@ -1024,6 +1099,40 @@
10241099
};
10251100
name = Release;
10261101
};
1102+
C81905B61DEA019100AE679C /* Debug */ = {
1103+
isa = XCBuildConfiguration;
1104+
buildSettings = {
1105+
CLANG_ANALYZER_NONNULL = YES;
1106+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1107+
CLANG_WARN_SUSPICIOUS_MOVES = YES;
1108+
DEVELOPMENT_TEAM = 783T66X79Y;
1109+
INFOPLIST_FILE = Tests/Info.plist;
1110+
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
1111+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1112+
PRODUCT_BUNDLE_IDENTIFIER = io.rx.Tests;
1113+
PRODUCT_NAME = "$(TARGET_NAME)";
1114+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
1115+
SWIFT_VERSION = 3.0;
1116+
};
1117+
name = Debug;
1118+
};
1119+
C81905B71DEA019100AE679C /* Release */ = {
1120+
isa = XCBuildConfiguration;
1121+
buildSettings = {
1122+
CLANG_ANALYZER_NONNULL = YES;
1123+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
1124+
CLANG_WARN_SUSPICIOUS_MOVES = YES;
1125+
DEVELOPMENT_TEAM = 783T66X79Y;
1126+
INFOPLIST_FILE = Tests/Info.plist;
1127+
IPHONEOS_DEPLOYMENT_TARGET = 10.1;
1128+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1129+
PRODUCT_BUNDLE_IDENTIFIER = io.rx.Tests;
1130+
PRODUCT_NAME = "$(TARGET_NAME)";
1131+
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1132+
SWIFT_VERSION = 3.0;
1133+
};
1134+
name = Release;
1135+
};
10271136
C8984C601C36AF35001E4272 /* Debug */ = {
10281137
isa = XCBuildConfiguration;
10291138
buildSettings = {
@@ -1326,6 +1435,14 @@
13261435
defaultConfigurationIsVisible = 0;
13271436
defaultConfigurationName = Release;
13281437
};
1438+
C81905B81DEA019100AE679C /* Build configuration list for PBXNativeTarget "Tests" */ = {
1439+
isa = XCConfigurationList;
1440+
buildConfigurations = (
1441+
C81905B61DEA019100AE679C /* Debug */,
1442+
C81905B71DEA019100AE679C /* Release */,
1443+
);
1444+
defaultConfigurationIsVisible = 0;
1445+
};
13291446
C8984C541C36AF35001E4272 /* Build configuration list for PBXProject "RxDataSources" */ = {
13301447
isa = XCConfigurationList;
13311448
buildConfigurations = (

Tests/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>

Tests/Tests.swift

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// Tests.swift
3+
// Tests
4+
//
5+
// Created by Krunoslav Zaher on 11/26/16.
6+
// Copyright © 2016 kzaher. All rights reserved.
7+
//
8+
9+
import XCTest
10+
11+
class Tests: XCTestCase {
12+
13+
override func setUp() {
14+
super.setUp()
15+
// Put setup code here. This method is called before the invocation of each test method in the class.
16+
}
17+
18+
override func tearDown() {
19+
// Put teardown code here. This method is called after the invocation of each test method in the class.
20+
super.tearDown()
21+
}
22+
23+
func testExample() {
24+
// This is an example of a functional test case.
25+
// Use XCTAssert and related functions to verify your tests produce the correct results.
26+
}
27+
28+
func testPerformanceExample() {
29+
// This is an example of a performance test case.
30+
self.measure {
31+
// Put the code you want to measure the time of here.
32+
}
33+
}
34+
35+
}

0 commit comments

Comments
 (0)