Skip to content

Commit d79b951

Browse files
author
Joey Lorich
committed
Add test scheme
1 parent 5bd5b7e commit d79b951

10 files changed

Lines changed: 328 additions & 0 deletions

File tree

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>cloudspace.${PRODUCT_NAME:rfc1034identifier}</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundlePackageType</key>
14+
<string>BNDL</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleSignature</key>
18+
<string>????</string>
19+
<key>CFBundleVersion</key>
20+
<string>1</string>
21+
</dict>
22+
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//
2+
// Prefix header
3+
//
4+
// The contents of this file are implicitly included at the beginning of every source file.
5+
//
6+
7+
#ifdef __OBJC__
8+
#import <UIKit/UIKit.h>
9+
#import <Foundation/Foundation.h>
10+
#endif
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// EasyReader_Tests.m
3+
// EasyReader-Tests
4+
//
5+
// Created by Joseph Lorich on 3/19/14.
6+
// Copyright (c) 2014 Cloudspace. All rights reserved.
7+
//
8+
9+
#import <XCTest/XCTest.h>
10+
11+
@interface EasyReader_Tests : XCTestCase
12+
13+
@end
14+
15+
@implementation EasyReader_Tests
16+
17+
- (void)setUp
18+
{
19+
[super setUp];
20+
// Put setup code here. This method is called before the invocation of each test method in the class.
21+
}
22+
23+
- (void)tearDown
24+
{
25+
// Put teardown code here. This method is called after the invocation of each test method in the class.
26+
[super tearDown];
27+
}
28+
29+
- (void)testExample
30+
{
31+
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32+
}
33+
34+
@end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/* Localized versions of Info.plist keys */
2+

EasyReader.xcodeproj/project.pbxproj

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@
149149
9D79278618DA1D3800E1D3E1 /* Default-Portrait@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 9D4FA6E517971D5B001E2A65 /* Default-Portrait@2x~ipad.png */; };
150150
9D79278718DA1D3800E1D3E1 /* Default-Landscape~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 9D4FA6E717971E88001E2A65 /* Default-Landscape~ipad.png */; };
151151
9D79278818DA1D3800E1D3E1 /* Default-Landscape@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 9D4FA6E917971E8D001E2A65 /* Default-Landscape@2x~ipad.png */; };
152+
9D7927C418DA279B00E1D3E1 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E1CE42418D0F5A00090028E /* XCTest.framework */; };
153+
9D7927C518DA279B00E1D3E1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9DAC16C91709D48E00383722 /* Foundation.framework */; };
154+
9D7927C618DA279B00E1D3E1 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9DAC16C71709D48E00383722 /* UIKit.framework */; };
155+
9D7927CC18DA279B00E1D3E1 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 9D7927CA18DA279B00E1D3E1 /* InfoPlist.strings */; };
156+
9D7927CE18DA279B00E1D3E1 /* EasyReader_Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D7927CD18DA279B00E1D3E1 /* EasyReader_Tests.m */; };
152157
9D8C6C5D170CA12500B18012 /* CSRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D8C6C5C170CA12500B18012 /* CSRootViewController.m */; };
153158
9D8F3196171DB410006CFC6A /* button_menu@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9D8F318F171DB410006CFC6A /* button_menu@2x.png */; };
154159
9D8F3197171DB410006CFC6A /* icon_back.png in Resources */ = {isa = PBXBuildFile; fileRef = 9D8F3192171DB410006CFC6A /* icon_back.png */; };
@@ -180,6 +185,16 @@
180185
9DFBC0991714957E006BF840 /* CSFeedAddViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DFBC0981714957E006BF840 /* CSFeedAddViewController.m */; };
181186
/* End PBXBuildFile section */
182187

188+
/* Begin PBXContainerItemProxy section */
189+
9D7927D018DA279B00E1D3E1 /* PBXContainerItemProxy */ = {
190+
isa = PBXContainerItemProxy;
191+
containerPortal = 9DAC16BC1709D48E00383722 /* Project object */;
192+
proxyType = 1;
193+
remoteGlobalIDString = 9DAC16C31709D48E00383722;
194+
remoteInfo = Development;
195+
};
196+
/* End PBXContainerItemProxy section */
197+
183198
/* Begin PBXFileReference section */
184199
0D8FF1A818D0D8C0005155E6 /* Main_iPhone.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main_iPhone.storyboard; sourceTree = "<group>"; };
185200
0D8FF1AA18D0DA3F005155E6 /* control_dualEntryTextField@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "control_dualEntryTextField@2x.png"; sourceTree = "<group>"; };
@@ -230,6 +245,11 @@
230245
9D79279018DA1D9200E1D3E1 /* Development-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Development-Info.plist"; sourceTree = "<group>"; };
231246
9D79279118DA1D9200E1D3E1 /* Production-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Production-Info.plist"; sourceTree = "<group>"; };
232247
9D79279218DA1D9200E1D3E1 /* Staging-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Staging-Info.plist"; sourceTree = "<group>"; };
248+
9D7927C318DA279B00E1D3E1 /* EasyReader-Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "EasyReader-Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
249+
9D7927C918DA279B00E1D3E1 /* EasyReader-Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "EasyReader-Tests-Info.plist"; sourceTree = "<group>"; };
250+
9D7927CB18DA279B00E1D3E1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
251+
9D7927CD18DA279B00E1D3E1 /* EasyReader_Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = EasyReader_Tests.m; sourceTree = "<group>"; };
252+
9D7927CF18DA279B00E1D3E1 /* EasyReader-Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "EasyReader-Tests-Prefix.pch"; sourceTree = "<group>"; };
233253
9D8C6C5B170CA12500B18012 /* CSRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSRootViewController.h; sourceTree = "<group>"; };
234254
9D8C6C5C170CA12500B18012 /* CSRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CSRootViewController.m; sourceTree = "<group>"; };
235255
9D8F318F171DB410006CFC6A /* button_menu@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "button_menu@2x.png"; sourceTree = "<group>"; };
@@ -299,6 +319,16 @@
299319
);
300320
runOnlyForDeploymentPostprocessing = 0;
301321
};
322+
9D7927C018DA279B00E1D3E1 /* Frameworks */ = {
323+
isa = PBXFrameworksBuildPhase;
324+
buildActionMask = 2147483647;
325+
files = (
326+
9D7927C418DA279B00E1D3E1 /* XCTest.framework in Frameworks */,
327+
9D7927C618DA279B00E1D3E1 /* UIKit.framework in Frameworks */,
328+
9D7927C518DA279B00E1D3E1 /* Foundation.framework in Frameworks */,
329+
);
330+
runOnlyForDeploymentPostprocessing = 0;
331+
};
302332
9DAC16C11709D48E00383722 /* Frameworks */ = {
303333
isa = PBXFrameworksBuildPhase;
304334
buildActionMask = 2147483647;
@@ -383,6 +413,25 @@
383413
name = Menu;
384414
sourceTree = "<group>";
385415
};
416+
9D7927C718DA279B00E1D3E1 /* EasyReader-Tests */ = {
417+
isa = PBXGroup;
418+
children = (
419+
9D7927CD18DA279B00E1D3E1 /* EasyReader_Tests.m */,
420+
9D7927C818DA279B00E1D3E1 /* Supporting Files */,
421+
);
422+
path = "EasyReader-Tests";
423+
sourceTree = "<group>";
424+
};
425+
9D7927C818DA279B00E1D3E1 /* Supporting Files */ = {
426+
isa = PBXGroup;
427+
children = (
428+
9D7927C918DA279B00E1D3E1 /* EasyReader-Tests-Info.plist */,
429+
9D7927CA18DA279B00E1D3E1 /* InfoPlist.strings */,
430+
9D7927CF18DA279B00E1D3E1 /* EasyReader-Tests-Prefix.pch */,
431+
);
432+
name = "Supporting Files";
433+
sourceTree = "<group>";
434+
};
386435
9D8F318D171DB3CE006CFC6A /* Images */ = {
387436
isa = PBXGroup;
388437
children = (
@@ -453,6 +502,7 @@
453502
9D4FA6E717971E88001E2A65 /* Default-Landscape~ipad.png */,
454503
9DA7CB35171CAD020045CC88 /* iOS Resources */,
455504
9DAC16CF1709D48E00383722 /* EasyReader */,
505+
9D7927C718DA279B00E1D3E1 /* EasyReader-Tests */,
456506
9DAC16C61709D48E00383722 /* Frameworks */,
457507
9DAC16C51709D48E00383722 /* Products */,
458508
5CECD14CAE964A1994399D15 /* Pods.xcconfig */,
@@ -465,6 +515,7 @@
465515
9DAC16C41709D48E00383722 /* Development.app */,
466516
9D79274A18DA1D0300E1D3E1 /* Staging.app */,
467517
9D79278E18DA1D3800E1D3E1 /* Easy Reader.app */,
518+
9D7927C318DA279B00E1D3E1 /* EasyReader-Tests.xctest */,
468519
);
469520
name = Products;
470521
sourceTree = "<group>";
@@ -641,6 +692,24 @@
641692
productReference = 9D79278E18DA1D3800E1D3E1 /* Easy Reader.app */;
642693
productType = "com.apple.product-type.application";
643694
};
695+
9D7927C218DA279B00E1D3E1 /* EasyReader-Tests */ = {
696+
isa = PBXNativeTarget;
697+
buildConfigurationList = 9D7927D218DA279B00E1D3E1 /* Build configuration list for PBXNativeTarget "EasyReader-Tests" */;
698+
buildPhases = (
699+
9D7927BF18DA279B00E1D3E1 /* Sources */,
700+
9D7927C018DA279B00E1D3E1 /* Frameworks */,
701+
9D7927C118DA279B00E1D3E1 /* Resources */,
702+
);
703+
buildRules = (
704+
);
705+
dependencies = (
706+
9D7927D118DA279B00E1D3E1 /* PBXTargetDependency */,
707+
);
708+
name = "EasyReader-Tests";
709+
productName = "EasyReader-Tests";
710+
productReference = 9D7927C318DA279B00E1D3E1 /* EasyReader-Tests.xctest */;
711+
productType = "com.apple.product-type.bundle.unit-test";
712+
};
644713
9DAC16C31709D48E00383722 /* Development */ = {
645714
isa = PBXNativeTarget;
646715
buildConfigurationList = 9DAC16FC1709D48E00383722 /* Build configuration list for PBXNativeTarget "Development" */;
@@ -670,6 +739,11 @@
670739
LastTestingUpgradeCheck = 0510;
671740
LastUpgradeCheck = 0510;
672741
ORGANIZATIONNAME = Cloudspace;
742+
TargetAttributes = {
743+
9D7927C218DA279B00E1D3E1 = {
744+
TestTargetID = 9DAC16C31709D48E00383722;
745+
};
746+
};
673747
};
674748
buildConfigurationList = 9DAC16BF1709D48E00383722 /* Build configuration list for PBXProject "EasyReader" */;
675749
compatibilityVersion = "Xcode 3.2";
@@ -686,6 +760,7 @@
686760
9DAC16C31709D48E00383722 /* Development */,
687761
9D79270818DA1D0300E1D3E1 /* Staging */,
688762
9D79274C18DA1D3800E1D3E1 /* Production */,
763+
9D7927C218DA279B00E1D3E1 /* EasyReader-Tests */,
689764
);
690765
};
691766
/* End PBXProject section */
@@ -765,6 +840,14 @@
765840
);
766841
runOnlyForDeploymentPostprocessing = 0;
767842
};
843+
9D7927C118DA279B00E1D3E1 /* Resources */ = {
844+
isa = PBXResourcesBuildPhase;
845+
buildActionMask = 2147483647;
846+
files = (
847+
9D7927CC18DA279B00E1D3E1 /* InfoPlist.strings in Resources */,
848+
);
849+
runOnlyForDeploymentPostprocessing = 0;
850+
};
768851
9DAC16C21709D48E00383722 /* Resources */ = {
769852
isa = PBXResourcesBuildPhase;
770853
buildActionMask = 2147483647;
@@ -944,6 +1027,14 @@
9441027
);
9451028
runOnlyForDeploymentPostprocessing = 0;
9461029
};
1030+
9D7927BF18DA279B00E1D3E1 /* Sources */ = {
1031+
isa = PBXSourcesBuildPhase;
1032+
buildActionMask = 2147483647;
1033+
files = (
1034+
9D7927CE18DA279B00E1D3E1 /* EasyReader_Tests.m in Sources */,
1035+
);
1036+
runOnlyForDeploymentPostprocessing = 0;
1037+
};
9471038
9DAC16C01709D48E00383722 /* Sources */ = {
9481039
isa = PBXSourcesBuildPhase;
9491040
buildActionMask = 2147483647;
@@ -972,6 +1063,25 @@
9721063
};
9731064
/* End PBXSourcesBuildPhase section */
9741065

1066+
/* Begin PBXTargetDependency section */
1067+
9D7927D118DA279B00E1D3E1 /* PBXTargetDependency */ = {
1068+
isa = PBXTargetDependency;
1069+
target = 9DAC16C31709D48E00383722 /* Development */;
1070+
targetProxy = 9D7927D018DA279B00E1D3E1 /* PBXContainerItemProxy */;
1071+
};
1072+
/* End PBXTargetDependency section */
1073+
1074+
/* Begin PBXVariantGroup section */
1075+
9D7927CA18DA279B00E1D3E1 /* InfoPlist.strings */ = {
1076+
isa = PBXVariantGroup;
1077+
children = (
1078+
9D7927CB18DA279B00E1D3E1 /* en */,
1079+
);
1080+
name = InfoPlist.strings;
1081+
sourceTree = "<group>";
1082+
};
1083+
/* End PBXVariantGroup section */
1084+
9751085
/* Begin XCBuildConfiguration section */
9761086
9D79274818DA1D0300E1D3E1 /* Debug */ = {
9771087
isa = XCBuildConfiguration;
@@ -982,6 +1092,11 @@
9821092
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
9831093
GCC_PRECOMPILE_PREFIX_HEADER = YES;
9841094
GCC_PREFIX_HEADER = "EasyReader/Other Sources/EasyReader-Prefix.pch";
1095+
GCC_PREPROCESSOR_DEFINITIONS = (
1096+
"$(inherited)",
1097+
"COCOAPODS=1",
1098+
"STAGING=1",
1099+
);
9851100
INFOPLIST_FILE = "EasyReader/Supporting Files/Staging-Info.plist";
9861101
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
9871102
PRODUCT_NAME = Staging;
@@ -1017,6 +1132,11 @@
10171132
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
10181133
GCC_PRECOMPILE_PREFIX_HEADER = YES;
10191134
GCC_PREFIX_HEADER = "EasyReader/Other Sources/EasyReader-Prefix.pch";
1135+
GCC_PREPROCESSOR_DEFINITIONS = (
1136+
"$(inherited)",
1137+
"COCOAPODS=1",
1138+
"PRODUCTION=1",
1139+
);
10201140
INFOPLIST_FILE = "EasyReader/Supporting Files/Production-Info.plist";
10211141
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
10221142
PRODUCT_NAME = "Easy Reader";
@@ -1043,6 +1163,68 @@
10431163
};
10441164
name = Release;
10451165
};
1166+
9D7927D318DA279B00E1D3E1 /* Debug */ = {
1167+
isa = XCBuildConfiguration;
1168+
buildSettings = {
1169+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Development.app/Development";
1170+
CLANG_ENABLE_MODULES = YES;
1171+
CLANG_WARN_BOOL_CONVERSION = YES;
1172+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1173+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1174+
FRAMEWORK_SEARCH_PATHS = (
1175+
"$(SDKROOT)/Developer/Library/Frameworks",
1176+
"$(inherited)",
1177+
"$(DEVELOPER_FRAMEWORKS_DIR)",
1178+
);
1179+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
1180+
GCC_PREFIX_HEADER = "EasyReader-Tests/EasyReader-Tests-Prefix.pch";
1181+
GCC_PREPROCESSOR_DEFINITIONS = (
1182+
"DEBUG=1",
1183+
"$(inherited)",
1184+
"TEST=1",
1185+
);
1186+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1187+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1188+
GCC_WARN_UNDECLARED_SELECTOR = YES;
1189+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1190+
GCC_WARN_UNUSED_FUNCTION = YES;
1191+
INFOPLIST_FILE = "EasyReader-Tests/EasyReader-Tests-Info.plist";
1192+
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
1193+
PRODUCT_NAME = "$(TARGET_NAME)";
1194+
TEST_HOST = "$(BUNDLE_LOADER)";
1195+
WRAPPER_EXTENSION = xctest;
1196+
};
1197+
name = Debug;
1198+
};
1199+
9D7927D418DA279B00E1D3E1 /* Release */ = {
1200+
isa = XCBuildConfiguration;
1201+
buildSettings = {
1202+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Development.app/Development";
1203+
CLANG_ENABLE_MODULES = YES;
1204+
CLANG_WARN_BOOL_CONVERSION = YES;
1205+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
1206+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
1207+
ENABLE_NS_ASSERTIONS = NO;
1208+
FRAMEWORK_SEARCH_PATHS = (
1209+
"$(SDKROOT)/Developer/Library/Frameworks",
1210+
"$(inherited)",
1211+
"$(DEVELOPER_FRAMEWORKS_DIR)",
1212+
);
1213+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
1214+
GCC_PREFIX_HEADER = "EasyReader-Tests/EasyReader-Tests-Prefix.pch";
1215+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
1216+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
1217+
GCC_WARN_UNDECLARED_SELECTOR = YES;
1218+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
1219+
GCC_WARN_UNUSED_FUNCTION = YES;
1220+
INFOPLIST_FILE = "EasyReader-Tests/EasyReader-Tests-Info.plist";
1221+
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
1222+
PRODUCT_NAME = "$(TARGET_NAME)";
1223+
TEST_HOST = "$(BUNDLE_LOADER)";
1224+
WRAPPER_EXTENSION = xctest;
1225+
};
1226+
name = Release;
1227+
};
10461228
9DAC16FA1709D48E00383722 /* Debug */ = {
10471229
isa = XCBuildConfiguration;
10481230
buildSettings = {
@@ -1158,6 +1340,14 @@
11581340
defaultConfigurationIsVisible = 0;
11591341
defaultConfigurationName = Release;
11601342
};
1343+
9D7927D218DA279B00E1D3E1 /* Build configuration list for PBXNativeTarget "EasyReader-Tests" */ = {
1344+
isa = XCConfigurationList;
1345+
buildConfigurations = (
1346+
9D7927D318DA279B00E1D3E1 /* Debug */,
1347+
9D7927D418DA279B00E1D3E1 /* Release */,
1348+
);
1349+
defaultConfigurationIsVisible = 0;
1350+
};
11611351
9DAC16BF1709D48E00383722 /* Build configuration list for PBXProject "EasyReader" */ = {
11621352
isa = XCConfigurationList;
11631353
buildConfigurations = (

0 commit comments

Comments
 (0)