Skip to content

Commit

Permalink
Added unit test scheme and bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hermiteer committed Feb 12, 2016
1 parent e537481 commit 31a9977
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
123 changes: 123 additions & 0 deletions CottonObject.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,24 @@
532560D219574590008B95F3 /* CottonObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 532560D019574590008B95F3 /* CottonObject.m */; };
532560D61958D98A008B95F3 /* SampleObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 532560D51958D98A008B95F3 /* SampleObject.m */; };
532560D91958DA8E008B95F3 /* SampleObject.plist in Resources */ = {isa = PBXBuildFile; fileRef = 532560D81958DA8E008B95F3 /* SampleObject.plist */; };
5330B7611C6E8567006FEE8B /* CottonObjectTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5330B7601C6E8567006FEE8B /* CottonObjectTests.swift */; };
53A95639196291A700685A56 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 53A95632196291A700685A56 /* AppDelegate.m */; };
53A9563C196291A700685A56 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 53A95637196291A700685A56 /* Images.xcassets */; };
53A9563D196291A700685A56 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 53A95638196291A700685A56 /* main.m */; };
53F541C319590C6000060F3A /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 53F541C219590C6000060F3A /* README.md */; };
53F541C519590C6B00060F3A /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 53F541C419590C6B00060F3A /* LICENSE */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
5330B7631C6E8567006FEE8B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 5325609619574503008B95F3 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 5325609D19574503008B95F3;
remoteInfo = CottonObject;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
53105A62198C052200B457BB /* Source */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Source; sourceTree = "<group>"; };
5325609E19574503008B95F3 /* CottonObject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CottonObject.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -32,6 +43,9 @@
532560D41958D98A008B95F3 /* SampleObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SampleObject.h; sourceTree = "<group>"; };
532560D51958D98A008B95F3 /* SampleObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SampleObject.m; sourceTree = "<group>"; };
532560D81958DA8E008B95F3 /* SampleObject.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SampleObject.plist; sourceTree = "<group>"; };
5330B75E1C6E8567006FEE8B /* CottonObjectTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CottonObjectTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
5330B7601C6E8567006FEE8B /* CottonObjectTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CottonObjectTests.swift; sourceTree = "<group>"; };
5330B7621C6E8567006FEE8B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
53A95631196291A700685A56 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
53A95632196291A700685A56 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
53A95633196291A700685A56 /* CottonObject-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "CottonObject-Info.plist"; sourceTree = "<group>"; };
Expand All @@ -54,6 +68,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5330B75B1C6E8567006FEE8B /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -69,6 +90,7 @@
532560D81958DA8E008B95F3 /* SampleObject.plist */,
53105A62198C052200B457BB /* Source */,
53A95630196291A700685A56 /* CottonObject */,
5330B75F1C6E8567006FEE8B /* CottonObjectTests */,
532560A019574503008B95F3 /* Frameworks */,
5325609F19574503008B95F3 /* Products */,
);
Expand All @@ -78,6 +100,7 @@
isa = PBXGroup;
children = (
5325609E19574503008B95F3 /* CottonObject.app */,
5330B75E1C6E8567006FEE8B /* CottonObjectTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -93,6 +116,15 @@
name = Frameworks;
sourceTree = "<group>";
};
5330B75F1C6E8567006FEE8B /* CottonObjectTests */ = {
isa = PBXGroup;
children = (
5330B7601C6E8567006FEE8B /* CottonObjectTests.swift */,
5330B7621C6E8567006FEE8B /* Info.plist */,
);
path = CottonObjectTests;
sourceTree = "<group>";
};
53A95630196291A700685A56 /* CottonObject */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -127,15 +159,39 @@
productReference = 5325609E19574503008B95F3 /* CottonObject.app */;
productType = "com.apple.product-type.application";
};
5330B75D1C6E8567006FEE8B /* CottonObjectTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5330B7671C6E8567006FEE8B /* Build configuration list for PBXNativeTarget "CottonObjectTests" */;
buildPhases = (
5330B75A1C6E8567006FEE8B /* Sources */,
5330B75B1C6E8567006FEE8B /* Frameworks */,
5330B75C1C6E8567006FEE8B /* Resources */,
);
buildRules = (
);
dependencies = (
5330B7641C6E8567006FEE8B /* PBXTargetDependency */,
);
name = CottonObjectTests;
productName = CottonObjectTests;
productReference = 5330B75E1C6E8567006FEE8B /* CottonObjectTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
5325609619574503008B95F3 /* Project object */ = {
isa = PBXProject;
attributes = {
CLASSPREFIX = HT;
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 0510;
ORGANIZATIONNAME = "Hermiteer, LLC";
TargetAttributes = {
5330B75D1C6E8567006FEE8B = {
CreatedOnToolsVersion = 7.2.1;
};
};
};
buildConfigurationList = 5325609919574503008B95F3 /* Build configuration list for PBXProject "CottonObject" */;
compatibilityVersion = "Xcode 3.2";
Expand All @@ -150,6 +206,7 @@
projectRoot = "";
targets = (
5325609D19574503008B95F3 /* CottonObject */,
5330B75D1C6E8567006FEE8B /* CottonObjectTests */,
);
};
/* End PBXProject section */
Expand All @@ -166,6 +223,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5330B75C1C6E8567006FEE8B /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -180,8 +244,24 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5330B75A1C6E8567006FEE8B /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5330B7611C6E8567006FEE8B /* CottonObjectTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
5330B7641C6E8567006FEE8B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 5325609D19574503008B95F3 /* CottonObject */;
targetProxy = 5330B7631C6E8567006FEE8B /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
53A95635196291A700685A56 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
Expand Down Expand Up @@ -290,6 +370,41 @@
};
name = Release;
};
5330B7651C6E8567006FEE8B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = CottonObjectTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = YES;
PRODUCT_BUNDLE_IDENTIFIER = com.hermiteer.ios.CottonObjectTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
5330B7661C6E8567006FEE8B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_WARN_UNREACHABLE_CODE = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_NO_COMMON_BLOCKS = YES;
INFOPLIST_FILE = CottonObjectTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
MTL_ENABLE_DEBUG_INFO = NO;
PRODUCT_BUNDLE_IDENTIFIER = com.hermiteer.ios.CottonObjectTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -311,6 +426,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5330B7671C6E8567006FEE8B /* Build configuration list for PBXNativeTarget "CottonObjectTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5330B7651C6E8567006FEE8B /* Debug */,
5330B7661C6E8567006FEE8B /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 5325609619574503008B95F3 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0720"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5330B75D1C6E8567006FEE8B"
BuildableName = "CottonObjectTests.xctest"
BlueprintName = "CottonObjectTests"
ReferencedContainer = "container:CottonObject.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5325609D19574503008B95F3"
BuildableName = "CottonObject.app"
BlueprintName = "CottonObject"
ReferencedContainer = "container:CottonObject.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5325609D19574503008B95F3"
BuildableName = "CottonObject.app"
BlueprintName = "CottonObject"
ReferencedContainer = "container:CottonObject.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5325609D19574503008B95F3"
BuildableName = "CottonObject.app"
BlueprintName = "CottonObject"
ReferencedContainer = "container:CottonObject.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
35 changes: 35 additions & 0 deletions CottonObjectTests/CottonObjectTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// CottonObjectTests.swift
// CottonObjectTests
//
// Created by Christoph on 2/12/16.
// Copyright © 2016 Hermiteer, LLC. All rights reserved.
//

import XCTest

class CottonObjectTests: XCTestCase {

override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}

override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}

func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}

}
24 changes: 24 additions & 0 deletions CottonObjectTests/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>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

0 comments on commit 31a9977

Please sign in to comment.