Skip to content

Commit

Permalink
Added Objective-C tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rhodgkins committed Jun 9, 2016
1 parent c828926 commit 20e0501
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 13 deletions.
119 changes: 115 additions & 4 deletions Tests/HTTPStatusCodes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
440D14251A99DD1D00EEB60B /* HTTPStatusCodesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 440D14241A99DD1D00EEB60B /* HTTPStatusCodesTests.swift */; };
4410E6E11D0740DA00AC18E6 /* HTTPStatusCodes+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4410E6E01D0740DA00AC18E6 /* HTTPStatusCodes+Extensions.swift */; };
442266871D076CA10083A675 /* RegressionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 442266861D076CA10083A675 /* RegressionTests.swift */; };
442A43991D09513E00807BFA /* ObjectiveCRegressionTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 442A43981D09513E00807BFA /* ObjectiveCRegressionTests.m */; };
442A439B1D09513E00807BFA /* HTTPStatusCodes.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 440D14121A99DD1D00EEB60B /* HTTPStatusCodes.framework */; };
444320471D08CA1D00A6CA18 /* Deprecated.h in Headers */ = {isa = PBXBuildFile; fileRef = 444320461D08C9AC00A6CA18 /* Deprecated.h */; settings = {ATTRIBUTES = (Public, ); }; };
444320491D08CAED00A6CA18 /* Deprecated.m in Sources */ = {isa = PBXBuildFile; fileRef = 444320481D08CAED00A6CA18 /* Deprecated.m */; };
44D94E4D1D07387400DC7B50 /* HTTPStatusCodes.swift in Sources */ = {isa = PBXBuildFile; fileRef = 44D94E4C1D07387400DC7B50 /* HTTPStatusCodes.swift */; };
Expand All @@ -25,6 +27,13 @@
remoteGlobalIDString = 440D14111A99DD1D00EEB60B;
remoteInfo = HTTPStatusCodes;
};
442A439C1D09513E00807BFA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 440D14091A99DD1D00EEB60B /* Project object */;
proxyType = 1;
remoteGlobalIDString = 440D14111A99DD1D00EEB60B;
remoteInfo = HTTPStatusCodes;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
Expand All @@ -40,6 +49,9 @@
4410E6E01D0740DA00AC18E6 /* HTTPStatusCodes+Extensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "HTTPStatusCodes+Extensions.swift"; sourceTree = "<group>"; };
4410E6E21D074E7500AC18E6 /* Generator.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Generator.playground; sourceTree = "<group>"; };
442266861D076CA10083A675 /* RegressionTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegressionTests.swift; sourceTree = "<group>"; };
442A43961D09513E00807BFA /* ObjectiveCTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ObjectiveCTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
442A43981D09513E00807BFA /* ObjectiveCRegressionTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ObjectiveCRegressionTests.m; sourceTree = "<group>"; };
442A439A1D09513E00807BFA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
444320461D08C9AC00A6CA18 /* Deprecated.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Deprecated.h; sourceTree = "<group>"; };
444320481D08CAED00A6CA18 /* Deprecated.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Deprecated.m; sourceTree = "<group>"; };
446C8CDC1BA73F0B00FFB0E3 /* HTTPStatusCodes.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = HTTPStatusCodes.xcconfig; sourceTree = "<group>"; };
Expand Down Expand Up @@ -67,6 +79,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
442A43931D09513E00807BFA /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
442A439B1D09513E00807BFA /* HTTPStatusCodes.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -82,6 +102,7 @@
4410E6E21D074E7500AC18E6 /* Generator.playground */,
440D14141A99DD1D00EEB60B /* HTTPStatusCodes */,
440D14211A99DD1D00EEB60B /* HTTPStatusCodesTests */,
442A43971D09513E00807BFA /* ObjectiveCTests */,
440D14131A99DD1D00EEB60B /* Products */,
);
sourceTree = "<group>";
Expand All @@ -91,6 +112,7 @@
children = (
440D14121A99DD1D00EEB60B /* HTTPStatusCodes.framework */,
440D141D1A99DD1D00EEB60B /* HTTPStatusCodesTests.xctest */,
442A43961D09513E00807BFA /* ObjectiveCTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -117,6 +139,15 @@
path = HTTPStatusCodesTests;
sourceTree = "<group>";
};
442A43971D09513E00807BFA /* ObjectiveCTests */ = {
isa = PBXGroup;
children = (
442A43981D09513E00807BFA /* ObjectiveCRegressionTests.m */,
442A439A1D09513E00807BFA /* Info.plist */,
);
path = ObjectiveCTests;
sourceTree = "<group>";
};
449852011B5A39140081F132 /* SupportingFiles */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -189,6 +220,24 @@
productReference = 440D141D1A99DD1D00EEB60B /* HTTPStatusCodesTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
442A43951D09513E00807BFA /* ObjectiveCTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 442A439E1D09513E00807BFA /* Build configuration list for PBXNativeTarget "ObjectiveCTests" */;
buildPhases = (
442A43921D09513E00807BFA /* Sources */,
442A43931D09513E00807BFA /* Frameworks */,
442A43941D09513E00807BFA /* Resources */,
);
buildRules = (
);
dependencies = (
442A439D1D09513E00807BFA /* PBXTargetDependency */,
);
name = ObjectiveCTests;
productName = ObjectiveCTests;
productReference = 442A43961D09513E00807BFA /* ObjectiveCTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -206,6 +255,9 @@
440D141C1A99DD1D00EEB60B = {
CreatedOnToolsVersion = 6.3;
};
442A43951D09513E00807BFA = {
CreatedOnToolsVersion = 7.3.1;
};
};
};
buildConfigurationList = 440D140C1A99DD1D00EEB60B /* Build configuration list for PBXProject "HTTPStatusCodes" */;
Expand All @@ -222,6 +274,7 @@
targets = (
440D14111A99DD1D00EEB60B /* HTTPStatusCodes */,
440D141C1A99DD1D00EEB60B /* HTTPStatusCodesTests */,
442A43951D09513E00807BFA /* ObjectiveCTests */,
);
};
/* End PBXProject section */
Expand All @@ -241,6 +294,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
442A43941D09513E00807BFA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -263,6 +323,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
442A43921D09513E00807BFA /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
442A43991D09513E00807BFA /* ObjectiveCRegressionTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -271,6 +339,11 @@
target = 440D14111A99DD1D00EEB60B /* HTTPStatusCodes */;
targetProxy = 440D141F1A99DD1D00EEB60B /* PBXContainerItemProxy */;
};
442A439D1D09513E00807BFA /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 440D14111A99DD1D00EEB60B /* HTTPStatusCodes */;
targetProxy = 442A439C1D09513E00807BFA /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -391,10 +464,6 @@
isa = XCBuildConfiguration;
buildSettings = {
APPLICATION_EXTENSION_API_ONLY = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "$(PRODUCT_NAME)/Info.plist";
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=watch*]" = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
Expand All @@ -414,6 +483,40 @@
};
name = Release;
};
442A439F1D09513E00807BFA /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = ObjectiveCTests/Info.plist;
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=watch*]" = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "uk.co.rhodgkins.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
442A43A01D09513E00807BFA /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
"CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = ObjectiveCTests/Info.plist;
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
"LD_RUNPATH_SEARCH_PATHS[sdk=watch*]" = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "uk.co.rhodgkins.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -444,6 +547,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
442A439E1D09513E00807BFA /* Build configuration list for PBXNativeTarget "ObjectiveCTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
442A439F1D09513E00807BFA /* Debug */,
442A43A01D09513E00807BFA /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 440D14091A99DD1D00EEB60B /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
ReferencedContainer = "container:HTTPStatusCodes.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "442A43951D09513E00807BFA"
BuildableName = "ObjectiveCTests.xctest"
BlueprintName = "ObjectiveCTests"
ReferencedContainer = "container:HTTPStatusCodes.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
Expand Down Expand Up @@ -94,15 +104,6 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "440D14111A99DD1D00EEB60B"
BuildableName = "HTTPStatusCodes.framework"
BlueprintName = "HTTPStatusCodes"
ReferencedContainer = "container:HTTPStatusCodes.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
24 changes: 24 additions & 0 deletions Tests/ObjectiveCTests/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>$(HSC_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Loading

0 comments on commit 20e0501

Please sign in to comment.