Skip to content

Commit

Permalink
Merge pull request #78 from alexsanderkhitev/master
Browse files Browse the repository at this point in the history
added unit tests
  • Loading branch information
alexanderkhitev committed Apr 2, 2016
2 parents 699e119 + ecd87ca commit 494ed88
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 1 deletion.
113 changes: 112 additions & 1 deletion SKPhotoBrowser.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,20 @@
8909B5491BC791510060A053 /* SKPhotoBrowser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8909B5411BC791510060A053 /* SKPhotoBrowser.swift */; };
8909B54A1BC791510060A053 /* SKZoomingScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8909B5421BC791510060A053 /* SKZoomingScrollView.swift */; };
8909B54D1BC7916E0060A053 /* SKPhotoBrowser.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8909B54C1BC7916E0060A053 /* SKPhotoBrowser.bundle */; };
A64B89361CB04222000071B9 /* SKPhotoBrowserTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A64B89351CB04222000071B9 /* SKPhotoBrowserTests.swift */; };
A64B89381CB04222000071B9 /* SKPhotoBrowser.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8909B5301BC791280060A053 /* SKPhotoBrowser.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
A64B89391CB04222000071B9 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 8909B5271BC791280060A053 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 8909B52F1BC791280060A053;
remoteInfo = SKPhotoBrowser;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
210E53EC1C986D3A008DD5E3 /* UIView+Radius.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "UIView+Radius.swift"; path = "extensions/UIView+Radius.swift"; sourceTree = "<group>"; };
210E53EE1C986D57008DD5E3 /* UIImage+Rotation.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "UIImage+Rotation.swift"; path = "extensions/UIImage+Rotation.swift"; sourceTree = "<group>"; };
Expand All @@ -34,6 +46,9 @@
8909B5411BC791510060A053 /* SKPhotoBrowser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SKPhotoBrowser.swift; sourceTree = "<group>"; };
8909B5421BC791510060A053 /* SKZoomingScrollView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SKZoomingScrollView.swift; sourceTree = "<group>"; };
8909B54C1BC7916E0060A053 /* SKPhotoBrowser.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = SKPhotoBrowser.bundle; sourceTree = "<group>"; };
A64B89331CB04222000071B9 /* SKPhotoBrowserTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SKPhotoBrowserTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
A64B89351CB04222000071B9 /* SKPhotoBrowserTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SKPhotoBrowserTests.swift; sourceTree = "<group>"; };
A64B89371CB04222000071B9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -44,6 +59,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A64B89301CB04222000071B9 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A64B89381CB04222000071B9 /* SKPhotoBrowser.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -60,6 +83,7 @@
isa = PBXGroup;
children = (
8909B5321BC791280060A053 /* SKPhotoBrowser */,
A64B89341CB04222000071B9 /* SKPhotoBrowserTests */,
8909B5311BC791280060A053 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -68,6 +92,7 @@
isa = PBXGroup;
children = (
8909B5301BC791280060A053 /* SKPhotoBrowser.framework */,
A64B89331CB04222000071B9 /* SKPhotoBrowserTests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -90,6 +115,15 @@
path = SKPhotoBrowser;
sourceTree = "<group>";
};
A64B89341CB04222000071B9 /* SKPhotoBrowserTests */ = {
isa = PBXGroup;
children = (
A64B89351CB04222000071B9 /* SKPhotoBrowserTests.swift */,
A64B89371CB04222000071B9 /* Info.plist */,
);
path = SKPhotoBrowserTests;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -123,19 +157,40 @@
productReference = 8909B5301BC791280060A053 /* SKPhotoBrowser.framework */;
productType = "com.apple.product-type.framework";
};
A64B89321CB04222000071B9 /* SKPhotoBrowserTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = A64B893D1CB04222000071B9 /* Build configuration list for PBXNativeTarget "SKPhotoBrowserTests" */;
buildPhases = (
A64B892F1CB04222000071B9 /* Sources */,
A64B89301CB04222000071B9 /* Frameworks */,
A64B89311CB04222000071B9 /* Resources */,
);
buildRules = (
);
dependencies = (
A64B893A1CB04222000071B9 /* PBXTargetDependency */,
);
name = SKPhotoBrowserTests;
productName = SKPhotoBrowserTests;
productReference = A64B89331CB04222000071B9 /* SKPhotoBrowserTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
8909B5271BC791280060A053 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = suzuki_keishi;
TargetAttributes = {
8909B52F1BC791280060A053 = {
CreatedOnToolsVersion = 7.0;
};
A64B89321CB04222000071B9 = {
CreatedOnToolsVersion = 7.3;
};
};
};
buildConfigurationList = 8909B52A1BC791280060A053 /* Build configuration list for PBXProject "SKPhotoBrowser" */;
Expand All @@ -151,6 +206,7 @@
projectRoot = "";
targets = (
8909B52F1BC791280060A053 /* SKPhotoBrowser */,
A64B89321CB04222000071B9 /* SKPhotoBrowserTests */,
);
};
/* End PBXProject section */
Expand All @@ -164,6 +220,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A64B89311CB04222000071B9 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -199,8 +262,24 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
A64B892F1CB04222000071B9 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A64B89361CB04222000071B9 /* SKPhotoBrowserTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
A64B893A1CB04222000071B9 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 8909B52F1BC791280060A053 /* SKPhotoBrowser */;
targetProxy = A64B89391CB04222000071B9 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
8909B5361BC791280060A053 /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -328,6 +407,30 @@
};
name = Release;
};
A64B893B1CB04222000071B9 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
INFOPLIST_FILE = SKPhotoBrowserTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Alexsander-Khitev.SKPhotoBrowserTests";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
A64B893C1CB04222000071B9 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
INFOPLIST_FILE = SKPhotoBrowserTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "Alexsander-Khitev.SKPhotoBrowserTests";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -349,6 +452,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A64B893D1CB04222000071B9 /* Build configuration list for PBXNativeTarget "SKPhotoBrowserTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A64B893B1CB04222000071B9 /* Debug */,
A64B893C1CB04222000071B9 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 8909B5271BC791280060A053 /* Project object */;
Expand Down
24 changes: 24 additions & 0 deletions SKPhotoBrowserTests/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>
35 changes: 35 additions & 0 deletions SKPhotoBrowserTests/SKPhotoBrowserTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// SKPhotoBrowserTests.swift
// SKPhotoBrowserTests
//
// Created by Alexsander on 4/2/16.
// Copyright © 2016 suzuki_keishi. All rights reserved.
//

import XCTest

class SKPhotoBrowserTests: 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.
}
}

}

0 comments on commit 494ed88

Please sign in to comment.