From a33247b6dc6856bb658d94cd215f771ae8faf62a Mon Sep 17 00:00:00 2001 From: zhijie Date: Fri, 19 Jul 2013 16:24:02 +0800 Subject: [PATCH] add empty unit test target --- .../RedmineMobile.xcodeproj/project.pbxproj | 169 +++++++++++++++++- .../RedmineMobileUnitTest-Info.plist | 22 +++ .../RedmineMobileUnitTest-Prefix.pch | 8 + .../RedmineMobileUnitTest.h | 13 ++ .../RedmineMobileUnitTest.m | 32 ++++ .../en.lproj/InfoPlist.strings | 2 + 6 files changed, 244 insertions(+), 2 deletions(-) create mode 100644 RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist create mode 100644 RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch create mode 100644 RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.h create mode 100644 RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.m create mode 100644 RedmineMobile/RedmineMobileUnitTest/en.lproj/InfoPlist.strings diff --git a/RedmineMobile/RedmineMobile.xcodeproj/project.pbxproj b/RedmineMobile/RedmineMobile.xcodeproj/project.pbxproj index f47963c..687b58b 100644 --- a/RedmineMobile/RedmineMobile.xcodeproj/project.pbxproj +++ b/RedmineMobile/RedmineMobile.xcodeproj/project.pbxproj @@ -25,6 +25,11 @@ 2B9968AB1794F71B0086F115 /* OZLModelIssueCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B9968AA1794F71B0086F115 /* OZLModelIssueCategory.m */; }; 2B9968AF1794FC0A0086F115 /* OZLProjectCreateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B9968AD1794FC0A0086F115 /* OZLProjectCreateViewController.m */; }; 2B9968B417951A5C0086F115 /* OZLIssueCreateViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2B9968B217951A5C0086F115 /* OZLIssueCreateViewController.m */; }; + 2BC4DD8C179928C80090F52C /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2BC4DD8B179928C80090F52C /* SenTestingKit.framework */; }; + 2BC4DD8D179928C80090F52C /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5DB80591792F2BF0081662A /* UIKit.framework */; }; + 2BC4DD8E179928C80090F52C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D5DB805B1792F2BF0081662A /* Foundation.framework */; }; + 2BC4DD94179928C80090F52C /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2BC4DD92179928C80090F52C /* InfoPlist.strings */; }; + 2BC4DD97179928C80090F52C /* RedmineMobileUnitTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 2BC4DD96179928C80090F52C /* RedmineMobileUnitTest.m */; }; 2BCCA0541795312E00FA8B1A /* OZLConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 2BCCA0531795312E00FA8B1A /* OZLConstants.m */; }; 2BCF880C1793A26A006FC859 /* MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 2BCF880B1793A26A006FC859 /* MBProgressHUD.m */; }; 2BCF88101793ABA0006FC859 /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = 2BCF880F1793ABA0006FC859 /* Reachability.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; @@ -71,6 +76,16 @@ D5DB80C217931C8B0081662A /* OZLModelProject.m in Sources */ = {isa = PBXBuildFile; fileRef = D5DB80C117931C8B0081662A /* OZLModelProject.m */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 2BC4DD9C17992A4D0090F52C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = D5DB804E1792F2BF0081662A /* Project object */; + proxyType = 1; + remoteGlobalIDString = D5DB80551792F2BF0081662A; + remoteInfo = RedmineMobile; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXFileReference section */ 2B62D0DE1796498800AC3C19 /* OZLIssueCreateViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = OZLIssueCreateViewController.storyboard; path = ViewControllers/OZLIssueCreateViewController.storyboard; sourceTree = ""; }; 2B62D0E0179649A800AC3C19 /* OZLIssueDetailViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = OZLIssueDetailViewController.storyboard; path = ViewControllers/OZLIssueDetailViewController.storyboard; sourceTree = ""; }; @@ -96,6 +111,13 @@ 2B9968AD1794FC0A0086F115 /* OZLProjectCreateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OZLProjectCreateViewController.m; path = ViewControllers/OZLProjectCreateViewController.m; sourceTree = ""; }; 2B9968B117951A5C0086F115 /* OZLIssueCreateViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OZLIssueCreateViewController.h; path = ViewControllers/OZLIssueCreateViewController.h; sourceTree = ""; }; 2B9968B217951A5C0086F115 /* OZLIssueCreateViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OZLIssueCreateViewController.m; path = ViewControllers/OZLIssueCreateViewController.m; sourceTree = ""; }; + 2BC4DD8A179928C80090F52C /* RedmineMobileUnitTest.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RedmineMobileUnitTest.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + 2BC4DD8B179928C80090F52C /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + 2BC4DD91179928C80090F52C /* RedmineMobileUnitTest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "RedmineMobileUnitTest-Info.plist"; sourceTree = ""; }; + 2BC4DD93179928C80090F52C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 2BC4DD95179928C80090F52C /* RedmineMobileUnitTest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RedmineMobileUnitTest.h; sourceTree = ""; }; + 2BC4DD96179928C80090F52C /* RedmineMobileUnitTest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RedmineMobileUnitTest.m; sourceTree = ""; }; + 2BC4DD98179928C80090F52C /* RedmineMobileUnitTest-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RedmineMobileUnitTest-Prefix.pch"; sourceTree = ""; }; 2BCCA0521795312E00FA8B1A /* OZLConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OZLConstants.h; path = Models/OZLConstants.h; sourceTree = ""; }; 2BCCA0531795312E00FA8B1A /* OZLConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = OZLConstants.m; path = Models/OZLConstants.m; sourceTree = ""; }; 2BCF880A1793A26A006FC859 /* MBProgressHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MBProgressHUD.h; sourceTree = ""; }; @@ -177,6 +199,16 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 2BC4DD86179928C80090F52C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2BC4DD8C179928C80090F52C /* SenTestingKit.framework in Frameworks */, + 2BC4DD8D179928C80090F52C /* UIKit.framework in Frameworks */, + 2BC4DD8E179928C80090F52C /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; D5DB80531792F2BF0081662A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -218,6 +250,26 @@ path = Images; sourceTree = ""; }; + 2BC4DD8F179928C80090F52C /* RedmineMobileUnitTest */ = { + isa = PBXGroup; + children = ( + 2BC4DD95179928C80090F52C /* RedmineMobileUnitTest.h */, + 2BC4DD96179928C80090F52C /* RedmineMobileUnitTest.m */, + 2BC4DD90179928C80090F52C /* Supporting Files */, + ); + path = RedmineMobileUnitTest; + sourceTree = ""; + }; + 2BC4DD90179928C80090F52C /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 2BC4DD91179928C80090F52C /* RedmineMobileUnitTest-Info.plist */, + 2BC4DD92179928C80090F52C /* InfoPlist.strings */, + 2BC4DD98179928C80090F52C /* RedmineMobileUnitTest-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; 2BCB50FD1796370F006845AC /* Views */ = { isa = PBXGroup; children = ( @@ -282,6 +334,7 @@ children = ( D5DB80761792F3EE0081662A /* Libs */, D5DB805F1792F2BF0081662A /* RedmineMobile */, + 2BC4DD8F179928C80090F52C /* RedmineMobileUnitTest */, D5DB80581792F2BF0081662A /* Frameworks */, D5DB80571792F2BF0081662A /* Products */, ); @@ -291,6 +344,7 @@ isa = PBXGroup; children = ( D5DB80561792F2BF0081662A /* RedmineMobile.app */, + 2BC4DD8A179928C80090F52C /* RedmineMobileUnitTest.octest */, ); name = Products; sourceTree = ""; @@ -304,6 +358,7 @@ D5DB80591792F2BF0081662A /* UIKit.framework */, D5DB805B1792F2BF0081662A /* Foundation.framework */, D5DB805D1792F2BF0081662A /* CoreGraphics.framework */, + 2BC4DD8B179928C80090F52C /* SenTestingKit.framework */, ); name = Frameworks; sourceTree = ""; @@ -456,6 +511,25 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 2BC4DD89179928C80090F52C /* RedmineMobileUnitTest */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2BC4DD99179928C80090F52C /* Build configuration list for PBXNativeTarget "RedmineMobileUnitTest" */; + buildPhases = ( + 2BC4DD85179928C80090F52C /* Sources */, + 2BC4DD86179928C80090F52C /* Frameworks */, + 2BC4DD87179928C80090F52C /* Resources */, + 2BC4DD88179928C80090F52C /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + 2BC4DD9D17992A4D0090F52C /* PBXTargetDependency */, + ); + name = RedmineMobileUnitTest; + productName = RedmineMobileUnitTest; + productReference = 2BC4DD8A179928C80090F52C /* RedmineMobileUnitTest.octest */; + productType = "com.apple.product-type.bundle"; + }; D5DB80551792F2BF0081662A /* RedmineMobile */ = { isa = PBXNativeTarget; buildConfigurationList = D5DB80731792F2BF0081662A /* Build configuration list for PBXNativeTarget "RedmineMobile" */; @@ -496,11 +570,20 @@ projectRoot = ""; targets = ( D5DB80551792F2BF0081662A /* RedmineMobile */, + 2BC4DD89179928C80090F52C /* RedmineMobileUnitTest */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 2BC4DD87179928C80090F52C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2BC4DD94179928C80090F52C /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; D5DB80541792F2BF0081662A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -529,7 +612,31 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 2BC4DD88179928C80090F52C /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ + 2BC4DD85179928C80090F52C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2BC4DD97179928C80090F52C /* RedmineMobileUnitTest.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; D5DB80521792F2BF0081662A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -576,7 +683,23 @@ }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 2BC4DD9D17992A4D0090F52C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = D5DB80551792F2BF0081662A /* RedmineMobile */; + targetProxy = 2BC4DD9C17992A4D0090F52C /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin PBXVariantGroup section */ + 2BC4DD92179928C80090F52C /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 2BC4DD93179928C80090F52C /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; D5DB80621792F2BF0081662A /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( @@ -588,6 +711,40 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 2BC4DD9A179928C80090F52C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RedmineMobile.app/RedmineMobile"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch"; + INFOPLIST_FILE = "RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + 2BC4DD9B179928C80090F52C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RedmineMobile.app/RedmineMobile"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch"; + INFOPLIST_FILE = "RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUNDLE_LOADER)"; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; D5DB80711792F2BF0081662A /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -613,7 +770,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -638,7 +795,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.1; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; @@ -673,6 +830,14 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 2BC4DD99179928C80090F52C /* Build configuration list for PBXNativeTarget "RedmineMobileUnitTest" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2BC4DD9A179928C80090F52C /* Debug */, + 2BC4DD9B179928C80090F52C /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; D5DB80511792F2BF0081662A /* Build configuration list for PBXProject "RedmineMobile" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist new file mode 100644 index 0000000..a427435 --- /dev/null +++ b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.zhijie.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch new file mode 100644 index 0000000..adca7d0 --- /dev/null +++ b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest-Prefix.pch @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'RedmineMobileUnitTest' target in the 'RedmineMobileUnitTest' project +// + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.h b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.h new file mode 100644 index 0000000..9881eee --- /dev/null +++ b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.h @@ -0,0 +1,13 @@ +// +// RedmineMobileUnitTest.h +// RedmineMobileUnitTest +// +// Created by lizhijie on 7/19/13. +// Copyright (c) 2013 Lee Zhijie. All rights reserved. +// + +#import + +@interface RedmineMobileUnitTest : SenTestCase + +@end diff --git a/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.m b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.m new file mode 100644 index 0000000..e4a3039 --- /dev/null +++ b/RedmineMobile/RedmineMobileUnitTest/RedmineMobileUnitTest.m @@ -0,0 +1,32 @@ +// +// RedmineMobileUnitTest.m +// RedmineMobileUnitTest +// +// Created by lizhijie on 7/19/13. +// Copyright (c) 2013 Lee Zhijie. All rights reserved. +// + +#import "RedmineMobileUnitTest.h" + +@implementation RedmineMobileUnitTest + +- (void)setUp +{ + [super setUp]; + + // Set-up code here. +} + +- (void)tearDown +{ + // Tear-down code here. + + [super tearDown]; +} + +- (void)testExample +{ + STFail(@"Unit tests are not implemented yet in RedmineMobileUnitTest"); +} + +@end diff --git a/RedmineMobile/RedmineMobileUnitTest/en.lproj/InfoPlist.strings b/RedmineMobile/RedmineMobileUnitTest/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/RedmineMobile/RedmineMobileUnitTest/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ +