Commit bfee7405 authored by Drew's avatar Drew

Resolve a crash when failing to check in CarolineXCTest

There are various reasons you might not want to check CarolineXCTest.swift into sourcecontrol.  Notably, if you have your tests folder shared between atbuild and Xcode, you want CarolineXCTest to be linked for Xcode but not for atbuild.  To achieve this, you might decline to check it in.

However, if caroline-static-tool encounters a swift sourcefile in the Xcodeproj it can't locate, it crashes.  This is the right behavior normally (missing source file is Bad News Bears) but the wrong behavior for CarolineXCTest since it will just be generated during the build.

We resolve this by ignoring the file not found in that particular case, as presumably there are no tests in CarolineXCTest.swift that we are missing (since we own it, and we generate it).

We implement test coverage for this by running the static tool on an Xcode project and deleting the file beforehand.  We don't currently use the project for any other xcode-related tests, although we certainly could use it as an integration host if we wanted to.
parent ccd92552
......@@ -126,8 +126,17 @@
:tool "shell"
:script "bin/CoreTest"
}
;;we can run this via standard toolchain since we only depend on statictool
:osx-xcode-toolrun {
:tool "shell"
:script "rm tests/OSXXcode/OSXXCodeTests/CarolineXCTest.swift; WRAPPER_EXTENSION=xctest PROJECT_FILE_PATH=tests/OSXXcode/OSXXcode.xcodeproj TARGETNAME=OSXXcodeTests bin/caroline-static-tool"
:dependencies ["statictool"]
}
:check {
:dependencies ["simpletest" "coretest"]
:dependencies ["simpletest" "coretest" "osx-xcode-toolrun"]
:tool "nop"
}
}
......
......@@ -15,7 +15,27 @@
func findTests(_ sourceFiles: [String]) -> [String] {
var tests: [String] = []
for file in sourceFiles {
let sourceText = try! String(file: file)
//load source text
let sourceText: String
do {
sourceText = try String(file: file)
}
catch {
switch error {
//if (and only if) the missing file is CarolineXCTest, we continue
//this is because a missing file is generally a build error
//however CarolineXCTest is often deliberately not checked in, to avoid conflicts between
//atllbuild `**` behavior and Xcode's generation behavior
//if we die here without CarolineXCTest, we will fail to regenerate the file as expected
case caroline_static_tool.FileUtilsError.OpenError where file.hasSuffix("CarolineXCTest.swift"):
continue
default:
fatalError("\(error)")
}
}
for match in try! Regex(pattern: "class[[:space:]]+([[:alnum:]]+)[[:space:]]*:[[:space:]]*CarolineTest[[:space:]]*\\{").findAll(inString: sourceText) {
let className = match.groups[0]!
tests.append(className.description)
......
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
3A4471871D38C45900D40353 /* OSXXcode.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A4471861D38C45900D40353 /* OSXXcode.h */; settings = {ATTRIBUTES = (Public, ); }; };
3A44718E1D38C45900D40353 /* OSXXcode.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A4471831D38C45900D40353 /* OSXXcode.framework */; };
3A4471931D38C45900D40353 /* OSXXcodeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A4471921D38C45900D40353 /* OSXXcodeTests.swift */; };
3A44719E1D38C5A400D40353 /* CarolineXCTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A44719D1D38C5A400D40353 /* CarolineXCTest.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
3A44718F1D38C45900D40353 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 3A44717A1D38C45900D40353 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 3A4471821D38C45900D40353;
remoteInfo = OSXXcode;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
3A4471831D38C45900D40353 /* OSXXcode.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = OSXXcode.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3A4471861D38C45900D40353 /* OSXXcode.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = OSXXcode.h; sourceTree = "<group>"; };
3A4471881D38C45900D40353 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3A44718D1D38C45900D40353 /* OSXXcodeTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = OSXXcodeTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3A4471921D38C45900D40353 /* OSXXcodeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OSXXcodeTests.swift; sourceTree = "<group>"; };
3A4471941D38C45900D40353 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3A44719D1D38C5A400D40353 /* CarolineXCTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CarolineXCTest.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
3A44717F1D38C45900D40353 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
3A44718A1D38C45900D40353 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
3A44718E1D38C45900D40353 /* OSXXcode.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
3A4471791D38C45900D40353 = {
isa = PBXGroup;
children = (
3A4471851D38C45900D40353 /* OSXXcode */,
3A4471911D38C45900D40353 /* OSXXcodeTests */,
3A4471841D38C45900D40353 /* Products */,
);
sourceTree = "<group>";
};
3A4471841D38C45900D40353 /* Products */ = {
isa = PBXGroup;
children = (
3A4471831D38C45900D40353 /* OSXXcode.framework */,
3A44718D1D38C45900D40353 /* OSXXcodeTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
3A4471851D38C45900D40353 /* OSXXcode */ = {
isa = PBXGroup;
children = (
3A4471861D38C45900D40353 /* OSXXcode.h */,
3A4471881D38C45900D40353 /* Info.plist */,
);
path = OSXXcode;
sourceTree = "<group>";
};
3A4471911D38C45900D40353 /* OSXXcodeTests */ = {
isa = PBXGroup;
children = (
3A44719D1D38C5A400D40353 /* CarolineXCTest.swift */,
3A4471921D38C45900D40353 /* OSXXcodeTests.swift */,
3A4471941D38C45900D40353 /* Info.plist */,
);
path = OSXXcodeTests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
3A4471801D38C45900D40353 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
3A4471871D38C45900D40353 /* OSXXcode.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
3A4471821D38C45900D40353 /* OSXXcode */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3A4471971D38C45900D40353 /* Build configuration list for PBXNativeTarget "OSXXcode" */;
buildPhases = (
3A44717E1D38C45900D40353 /* Sources */,
3A44717F1D38C45900D40353 /* Frameworks */,
3A4471801D38C45900D40353 /* Headers */,
3A4471811D38C45900D40353 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = OSXXcode;
productName = OSXXcode;
productReference = 3A4471831D38C45900D40353 /* OSXXcode.framework */;
productType = "com.apple.product-type.framework";
};
3A44718C1D38C45900D40353 /* OSXXcodeTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3A44719A1D38C45900D40353 /* Build configuration list for PBXNativeTarget "OSXXcodeTests" */;
buildPhases = (
3A4471891D38C45900D40353 /* Sources */,
3A44718A1D38C45900D40353 /* Frameworks */,
3A44718B1D38C45900D40353 /* Resources */,
);
buildRules = (
);
dependencies = (
3A4471901D38C45900D40353 /* PBXTargetDependency */,
);
name = OSXXcodeTests;
productName = OSXXcodeTests;
productReference = 3A44718D1D38C45900D40353 /* OSXXcodeTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
3A44717A1D38C45900D40353 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0730;
LastUpgradeCheck = 0730;
ORGANIZATIONNAME = "Drew Crawford";
TargetAttributes = {
3A4471821D38C45900D40353 = {
CreatedOnToolsVersion = 7.3.1;
};
3A44718C1D38C45900D40353 = {
CreatedOnToolsVersion = 7.3.1;
};
};
};
buildConfigurationList = 3A44717D1D38C45900D40353 /* Build configuration list for PBXProject "OSXXcode" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 3A4471791D38C45900D40353;
productRefGroup = 3A4471841D38C45900D40353 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3A4471821D38C45900D40353 /* OSXXcode */,
3A44718C1D38C45900D40353 /* OSXXcodeTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
3A4471811D38C45900D40353 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
3A44718B1D38C45900D40353 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
3A44717E1D38C45900D40353 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
3A4471891D38C45900D40353 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3A4471931D38C45900D40353 /* OSXXcodeTests.swift in Sources */,
3A44719E1D38C5A400D40353 /* CarolineXCTest.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
3A4471901D38C45900D40353 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 3A4471821D38C45900D40353 /* OSXXcode */;
targetProxy = 3A44718F1D38C45900D40353 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
3A4471951D38C45900D40353 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
3A4471961D38C45900D40353 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
3A4471981D38C45900D40353 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = OSXXcode/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.dca.OSXXcode;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
3A4471991D38C45900D40353 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
FRAMEWORK_VERSION = A;
INFOPLIST_FILE = OSXXcode/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.dca.OSXXcode;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
3A44719B1D38C45900D40353 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = OSXXcodeTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.dca.OSXXcodeTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
3A44719C1D38C45900D40353 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = OSXXcodeTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.dca.OSXXcodeTests;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
3A44717D1D38C45900D40353 /* Build configuration list for PBXProject "OSXXcode" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3A4471951D38C45900D40353 /* Debug */,
3A4471961D38C45900D40353 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3A4471971D38C45900D40353 /* Build configuration list for PBXNativeTarget "OSXXcode" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3A4471981D38C45900D40353 /* Debug */,
3A4471991D38C45900D40353 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
3A44719A1D38C45900D40353 /* Build configuration list for PBXNativeTarget "OSXXcodeTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3A44719B1D38C45900D40353 /* Debug */,
3A44719C1D38C45900D40353 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 3A44717A1D38C45900D40353 /* Project object */;
}
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:OSXXcode.xcodeproj">
</FileRef>
</Workspace>
<?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>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2016 Drew Crawford. All rights reserved.</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
//
// OSXXcode.h
// OSXXcode
//
// Created by Drew Crawford on 7/15/16.
// Copyright © 2016 Drew Crawford. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for OSXXcode.
FOUNDATION_EXPORT double OSXXcodeVersionNumber;
//! Project version string for OSXXcode.
FOUNDATION_EXPORT const unsigned char OSXXcodeVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <OSXXcode/PublicHeader.h>
// Copyright (c) 2016 Drew Crawford.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import XCTest
import CarolineCore
@testable import OSXXcodeTests
class CarolineEngineTests: XCTestCase {
func testAllCarolineTests() {
let allTests: [CarolineTest] = [
]
let engine = CarolineCoreEngine()
if !engine.testAll(allTests) {
XCTFail("Caroline tests failed")
}
}
}
<?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>
//
// OSXXcodeTests.swift
// OSXXcodeTests
//
// Created by Drew Crawford on 7/15/16.
// Copyright © 2016 Drew Crawford. All rights reserved.
//
import XCTest
@testable import OSXXcode
class OSXXcodeTests: 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.
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment