mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-07 23:58:40 +01:00
Make test cases run again.
This commit is contained in:
parent
5a852c1615
commit
1b49788a0a
@ -2998,7 +2998,6 @@
|
|||||||
baseConfigurationReference = D5907CDD2002F0BE005947E5 /* NetNewsWire_project_debug.xcconfig */;
|
baseConfigurationReference = D5907CDD2002F0BE005947E5 /* NetNewsWire_project_debug.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
@ -3007,7 +3006,6 @@
|
|||||||
baseConfigurationReference = D5907CDC2002F0BE005947E5 /* NetNewsWire_project_release.xcconfig */;
|
baseConfigurationReference = D5907CDC2002F0BE005947E5 /* NetNewsWire_project_release.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.14;
|
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
@ -3045,6 +3043,7 @@
|
|||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = D5907CDF2002F0F9005947E5 /* NetNewsWireTests_target.xcconfig */;
|
baseConfigurationReference = D5907CDF2002F0F9005947E5 /* NetNewsWireTests_target.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
CODE_SIGN_IDENTITY = "-";
|
||||||
PRODUCT_NAME = NetNewsWireTests;
|
PRODUCT_NAME = NetNewsWireTests;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
|
@ -31,7 +31,7 @@ class AppleScriptXCTestCase: XCTestCase {
|
|||||||
func doIndividualScript(filename:String) -> NSAppleEventDescriptor? {
|
func doIndividualScript(filename:String) -> NSAppleEventDescriptor? {
|
||||||
var errorDict: NSDictionary? = nil
|
var errorDict: NSDictionary? = nil
|
||||||
let testBundle = Bundle(for: type(of: self))
|
let testBundle = Bundle(for: type(of: self))
|
||||||
let url = testBundle.url(forResource:filename, withExtension:"applescript", subdirectory:"TestScripts")
|
let url = testBundle.url(forResource:filename, withExtension:"scpt")
|
||||||
guard let testScriptUrl = url else {
|
guard let testScriptUrl = url else {
|
||||||
XCTFail("Failed Getting script URL")
|
XCTFail("Failed Getting script URL")
|
||||||
return nil
|
return nil
|
||||||
|
@ -22,7 +22,7 @@ extension NSAppleEventDescriptor {
|
|||||||
print ("error: usrfDictionary() expected input to be a record")
|
print ("error: usrfDictionary() expected input to be a record")
|
||||||
return [:]
|
return [:]
|
||||||
}
|
}
|
||||||
guard let usrfList = self.forKeyword("usrf".FourCharCode()) else {
|
guard let usrfList = self.forKeyword("usrf".fourCharCode()) else {
|
||||||
print ("error: usrfDictionary() couldn't find usrf")
|
print ("error: usrfDictionary() couldn't find usrf")
|
||||||
return [:]
|
return [:]
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
|
|||||||
COMBINE_HIDPI_IMAGES = YES
|
COMBINE_HIDPI_IMAGES = YES
|
||||||
BUNDLE_LOADER = $(TEST_HOST)
|
BUNDLE_LOADER = $(TEST_HOST)
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks
|
||||||
INFOPLIST_FILE = NetNewsWireTests/Info.plist
|
INFOPLIST_FILE = Tests/NetNewsWireTests/Info.plist
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.ranchero.NetNewsWireTests
|
PRODUCT_BUNDLE_IDENTIFIER = com.ranchero.NetNewsWireTests
|
||||||
PRODUCT_NAME = $(TARGET_NAME)
|
PRODUCT_NAME = $(TARGET_NAME)
|
||||||
TEST_HOST = $(BUILT_PRODUCTS_DIR)/NetNewsWire.app/Contents/MacOS/NetNewsWire
|
TEST_HOST = $(BUILT_PRODUCTS_DIR)/NetNewsWire.app/Contents/MacOS/NetNewsWire
|
||||||
|
Loading…
x
Reference in New Issue
Block a user