From 3a251e298f090e4d7af9c87b0820837a30b35798 Mon Sep 17 00:00:00 2001 From: Satoshi Nagasaka Date: Tue, 25 Sep 2018 20:38:32 +0900 Subject: [PATCH] add test target --- Anima.xcodeproj/project.pbxproj | 126 +++++++++++++++++- .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++ .../xcshareddata/xcschemes/Anima.xcscheme | 19 +++ AnimaTests/AnimaTests.swift | 34 +++++ AnimaTests/Info.plist | 22 +++ 5 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 Anima.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 AnimaTests/AnimaTests.swift create mode 100644 AnimaTests/Info.plist diff --git a/Anima.xcodeproj/project.pbxproj b/Anima.xcodeproj/project.pbxproj index fc08f51..dfb0cc4 100644 --- a/Anima.xcodeproj/project.pbxproj +++ b/Anima.xcodeproj/project.pbxproj @@ -33,6 +33,8 @@ 63A9510E1EAFAE23007AFB34 /* UIColor+Anima.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63A950F61EAFAD45007AFB34 /* UIColor+Anima.swift */; }; 63A951111EAFAE4D007AFB34 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63A9510F1EAFAE4D007AFB34 /* LaunchScreen.storyboard */; }; 63A951121EAFAE4D007AFB34 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 63A951101EAFAE4D007AFB34 /* Main.storyboard */; }; + 63D9DAA6215A556D00299EE9 /* AnimaTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63D9DAA5215A556D00299EE9 /* AnimaTests.swift */; }; + 63D9DAA8215A556D00299EE9 /* Anima.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 63A950B91EAFAB6C007AFB34 /* Anima.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -43,6 +45,13 @@ remoteGlobalIDString = 63A950B81EAFAB6C007AFB34; remoteInfo = Anima; }; + 63D9DAA9215A556D00299EE9 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 63A950B01EAFAB6C007AFB34 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 63A950B81EAFAB6C007AFB34; + remoteInfo = Anima; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -91,6 +100,9 @@ 63A951001EAFADB3007AFB34 /* CornerLineAnimationViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CornerLineAnimationViewController.swift; sourceTree = ""; }; 63A9510F1EAFAE4D007AFB34 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = ""; }; 63A951101EAFAE4D007AFB34 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 63D9DAA3215A556D00299EE9 /* AnimaTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AnimaTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 63D9DAA5215A556D00299EE9 /* AnimaTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnimaTests.swift; sourceTree = ""; }; + 63D9DAA7215A556D00299EE9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -109,6 +121,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 63D9DAA0215A556D00299EE9 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 63D9DAA8215A556D00299EE9 /* Anima.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -120,6 +140,7 @@ 638417331EB1BEE20012A7FA /* README.md */, 63A950BB1EAFAB6C007AFB34 /* Sources */, 63A950C91EAFAB92007AFB34 /* Example */, + 63D9DAA4215A556D00299EE9 /* AnimaTests */, 63A950BA1EAFAB6C007AFB34 /* Products */, ); sourceTree = ""; @@ -129,6 +150,7 @@ children = ( 63A950B91EAFAB6C007AFB34 /* Anima.framework */, 63A950C81EAFAB92007AFB34 /* Anima iOS Example.app */, + 63D9DAA3215A556D00299EE9 /* AnimaTests.xctest */, ); name = Products; sourceTree = ""; @@ -173,6 +195,15 @@ path = Example; sourceTree = ""; }; + 63D9DAA4215A556D00299EE9 /* AnimaTests */ = { + isa = PBXGroup; + children = ( + 63D9DAA5215A556D00299EE9 /* AnimaTests.swift */, + 63D9DAA7215A556D00299EE9 /* Info.plist */, + ); + path = AnimaTests; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ @@ -224,13 +255,31 @@ productReference = 63A950C81EAFAB92007AFB34 /* Anima iOS Example.app */; productType = "com.apple.product-type.application"; }; + 63D9DAA2215A556D00299EE9 /* AnimaTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 63D9DAAD215A556D00299EE9 /* Build configuration list for PBXNativeTarget "AnimaTests" */; + buildPhases = ( + 63D9DA9F215A556D00299EE9 /* Sources */, + 63D9DAA0215A556D00299EE9 /* Frameworks */, + 63D9DAA1215A556D00299EE9 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 63D9DAAA215A556D00299EE9 /* PBXTargetDependency */, + ); + name = AnimaTests; + productName = AnimaTests; + productReference = 63D9DAA3215A556D00299EE9 /* AnimaTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 63A950B01EAFAB6C007AFB34 /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 0830; + LastSwiftUpdateCheck = 1000; LastUpgradeCheck = 1000; ORGANIZATIONNAME = satoshin21; TargetAttributes = { @@ -244,6 +293,10 @@ LastSwiftMigration = 0900; ProvisioningStyle = Automatic; }; + 63D9DAA2215A556D00299EE9 = { + CreatedOnToolsVersion = 10.0; + ProvisioningStyle = Automatic; + }; }; }; buildConfigurationList = 63A950B31EAFAB6C007AFB34 /* Build configuration list for PBXProject "Anima" */; @@ -261,6 +314,7 @@ targets = ( 63A950B81EAFAB6C007AFB34 /* Anima */, 63A950C71EAFAB92007AFB34 /* Anima iOS Example */, + 63D9DAA2215A556D00299EE9 /* AnimaTests */, ); }; /* End PBXProject section */ @@ -283,6 +337,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 63D9DAA1215A556D00299EE9 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -320,6 +381,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 63D9DA9F215A556D00299EE9 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 63D9DAA6215A556D00299EE9 /* AnimaTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ @@ -328,6 +397,11 @@ target = 63A950B81EAFAB6C007AFB34 /* Anima */; targetProxy = 636D60721FADB52A00439DC2 /* PBXContainerItemProxy */; }; + 63D9DAAA215A556D00299EE9 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 63A950B81EAFAB6C007AFB34 /* Anima */; + targetProxy = 63D9DAA9215A556D00299EE9 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ @@ -521,6 +595,47 @@ }; name = Release; }; + 63D9DAAB215A556D00299EE9 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = AnimaTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = work.satoshin21.AnimaTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 63D9DAAC215A556D00299EE9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + GCC_C_LANGUAGE_STANDARD = gnu11; + INFOPLIST_FILE = AnimaTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = work.satoshin21.AnimaTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 4.2; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -551,6 +666,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 63D9DAAD215A556D00299EE9 /* Build configuration list for PBXNativeTarget "AnimaTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 63D9DAAB215A556D00299EE9 /* Debug */, + 63D9DAAC215A556D00299EE9 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; /* End XCConfigurationList section */ }; rootObject = 63A950B01EAFAB6C007AFB34 /* Project object */; diff --git a/Anima.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Anima.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Anima.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Anima.xcodeproj/xcshareddata/xcschemes/Anima.xcscheme b/Anima.xcodeproj/xcshareddata/xcschemes/Anima.xcscheme index d52b6f3..25d4743 100644 --- a/Anima.xcodeproj/xcshareddata/xcschemes/Anima.xcscheme +++ b/Anima.xcodeproj/xcshareddata/xcschemes/Anima.xcscheme @@ -28,7 +28,26 @@ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + + + diff --git a/AnimaTests/AnimaTests.swift b/AnimaTests/AnimaTests.swift new file mode 100644 index 0000000..d9e12fc --- /dev/null +++ b/AnimaTests/AnimaTests.swift @@ -0,0 +1,34 @@ +// +// AnimaTests.swift +// AnimaTests +// +// Created by Satoshi Nagasaka on 2018/09/25. +// Copyright © 2018 satoshin21. All rights reserved. +// + +import XCTest + +// FIXME: There is no tests... +class AnimaTests: XCTestCase { + + override func 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. + } + + 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.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/AnimaTests/Info.plist b/AnimaTests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/AnimaTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + +