From 4684d8a66979e024e1a493d651c44b0b671aa110 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 15 Mar 2020 16:23:42 -0700 Subject: [PATCH] Adding test plan --- Config/Secretive.xctestplan | 41 +++++++++++ SecretAgentKitTests/SecretAgentKitTests.swift | 7 -- SecretKitTests/SecretKitTests.swift | 7 -- Secretive.xcodeproj/project.pbxproj | 72 +------------------ .../xcschemes/SecretAgentKit.xcscheme | 20 +++++- .../xcshareddata/xcschemes/SecretKit.xcscheme | 10 ++- .../xcshareddata/xcschemes/Secretive.xcscheme | 8 ++- SecretiveTests/SecretiveTests.swift | 6 -- 8 files changed, 76 insertions(+), 95 deletions(-) create mode 100644 Config/Secretive.xctestplan diff --git a/Config/Secretive.xctestplan b/Config/Secretive.xctestplan new file mode 100644 index 0000000..6e10639 --- /dev/null +++ b/Config/Secretive.xctestplan @@ -0,0 +1,41 @@ +{ + "configurations" : [ + { + "id" : "5896AE5A-6D5A-48D3-837B-668B646A3273", + "name" : "Configuration 1", + "options" : { + + } + } + ], + "defaultOptions" : { + + }, + "testTargets" : [ + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:Secretive.xcodeproj", + "identifier" : "50617DAF23FCE4AB0099B055", + "name" : "SecretKitTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:Secretive.xcodeproj", + "identifier" : "5099A073240242BA0062B6F2", + "name" : "SecretAgentKitTests" + } + }, + { + "parallelizable" : true, + "target" : { + "containerPath" : "container:Secretive.xcodeproj", + "identifier" : "50617D9323FCE48E0099B055", + "name" : "SecretiveTests" + } + } + ], + "version" : 1 +} diff --git a/SecretAgentKitTests/SecretAgentKitTests.swift b/SecretAgentKitTests/SecretAgentKitTests.swift index 99711e7..d361d96 100644 --- a/SecretAgentKitTests/SecretAgentKitTests.swift +++ b/SecretAgentKitTests/SecretAgentKitTests.swift @@ -24,11 +24,4 @@ class SecretAgentKitTests: XCTestCase { // Use XCTAssert and related functions to verify your tests produce the correct results. } - func testPerformanceExample() throws { - // 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/SecretKitTests/SecretKitTests.swift b/SecretKitTests/SecretKitTests.swift index ca8cfa6..051b3f0 100644 --- a/SecretKitTests/SecretKitTests.swift +++ b/SecretKitTests/SecretKitTests.swift @@ -24,11 +24,4 @@ class SecretKitTests: XCTestCase { // 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/Secretive.xcodeproj/project.pbxproj b/Secretive.xcodeproj/project.pbxproj index bdb9539..dc25463 100644 --- a/Secretive.xcodeproj/project.pbxproj +++ b/Secretive.xcodeproj/project.pbxproj @@ -6,19 +6,6 @@ objectVersion = 50; objects = { -/* Begin PBXAggregateTarget section */ - 508A590B241EEE900069DC07 /* Tests */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 508A590E241EEE900069DC07 /* Build configuration list for PBXAggregateTarget "Tests" */; - buildPhases = ( - ); - dependencies = ( - ); - name = Tests; - productName = Tests; - }; -/* End PBXAggregateTarget section */ - /* Begin PBXBuildFile section */ 50020BB024064869003D4025 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50020BAF24064869003D4025 /* AppDelegate.swift */; }; 5018F54F24064786002EB505 /* Notifier.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5018F54E24064786002EB505 /* Notifier.swift */; }; @@ -102,13 +89,6 @@ remoteGlobalIDString = 50617DA723FCE4AB0099B055; remoteInfo = SecretKit; }; - 50617DB423FCE4AB0099B055 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617D7E23FCE48D0099B055; - remoteInfo = Secretive; - }; 50617DBB23FCE4AB0099B055 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 50617D7723FCE48D0099B055 /* Project object */; @@ -123,13 +103,6 @@ remoteGlobalIDString = 5099A06B240242BA0062B6F2; remoteInfo = SecretAgentKit; }; - 5099A078240242BA0062B6F2 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 50617D7723FCE48D0099B055 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 50617D7E23FCE48D0099B055; - remoteInfo = Secretive; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -203,6 +176,7 @@ 508A58AB241E121B0069DC07 /* Config.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Config.xcconfig; sourceTree = ""; }; 508A58B2241ED2180069DC07 /* AgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AgentStatusChecker.swift; sourceTree = ""; }; 508A58B4241ED48F0069DC07 /* PreviewAgentStatusChecker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewAgentStatusChecker.swift; sourceTree = ""; }; + 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Secretive.xctestplan; sourceTree = ""; }; 5099A02323FD2AAA0062B6F2 /* CreateSecretView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreateSecretView.swift; sourceTree = ""; }; 5099A02623FE34FA0062B6F2 /* SmartCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCard.swift; sourceTree = ""; }; 5099A02823FE35240062B6F2 /* SmartCardStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmartCardStore.swift; sourceTree = ""; }; @@ -407,6 +381,7 @@ 508A58AF241E144C0069DC07 /* Config */ = { isa = PBXGroup; children = ( + 508A590F241EEF6D0069DC07 /* Secretive.xctestplan */, 508A58AB241E121B0069DC07 /* Config.xcconfig */, ); path = Config; @@ -595,7 +570,6 @@ ); dependencies = ( 50617DB323FCE4AB0099B055 /* PBXTargetDependency */, - 50617DB523FCE4AB0099B055 /* PBXTargetDependency */, ); name = SecretKitTests; productName = SecretKitTests; @@ -632,7 +606,6 @@ ); dependencies = ( 5099A077240242BA0062B6F2 /* PBXTargetDependency */, - 5099A079240242BA0062B6F2 /* PBXTargetDependency */, ); name = SecretAgentKitTests; productName = SecretAgentKitTests; @@ -684,9 +657,6 @@ CreatedOnToolsVersion = 11.3; TestTargetID = 50617D7E23FCE48D0099B055; }; - 508A590B241EEE900069DC07 = { - CreatedOnToolsVersion = 11.4; - }; 5099A06B240242BA0062B6F2 = { CreatedOnToolsVersion = 11.4; LastSwiftMigration = 1140; @@ -720,7 +690,6 @@ 50617DAF23FCE4AB0099B055 /* SecretKitTests */, 5099A06B240242BA0062B6F2 /* SecretAgentKit */, 5099A073240242BA0062B6F2 /* SecretAgentKitTests */, - 508A590B241EEE900069DC07 /* Tests */, ); }; /* End PBXProject section */ @@ -890,11 +859,6 @@ target = 50617DA723FCE4AB0099B055 /* SecretKit */; targetProxy = 50617DB223FCE4AB0099B055 /* PBXContainerItemProxy */; }; - 50617DB523FCE4AB0099B055 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617D7E23FCE48D0099B055 /* Secretive */; - targetProxy = 50617DB423FCE4AB0099B055 /* PBXContainerItemProxy */; - }; 50617DBC23FCE4AB0099B055 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 50617DA723FCE4AB0099B055 /* SecretKit */; @@ -905,11 +869,6 @@ target = 5099A06B240242BA0062B6F2 /* SecretAgentKit */; targetProxy = 5099A076240242BA0062B6F2 /* PBXContainerItemProxy */; }; - 5099A079240242BA0062B6F2 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 50617D7E23FCE48D0099B055 /* Secretive */; - targetProxy = 5099A078240242BA0062B6F2 /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ @@ -1246,24 +1205,6 @@ }; name = Release; }; - 508A590C241EEE900069DC07 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Z72PRUAWF6; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 508A590D241EEE900069DC07 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = Z72PRUAWF6; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; 5099A084240242BA0062B6F2 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1461,15 +1402,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 508A590E241EEE900069DC07 /* Build configuration list for PBXAggregateTarget "Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 508A590C241EEE900069DC07 /* Debug */, - 508A590D241EEE900069DC07 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 5099A083240242BA0062B6F2 /* Build configuration list for PBXNativeTarget "SecretAgentKit" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme b/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme index ed81ba6..9542d6b 100644 --- a/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme +++ b/Secretive.xcodeproj/xcshareddata/xcschemes/SecretAgentKit.xcscheme @@ -1,7 +1,7 @@ + version = "1.7"> @@ -27,7 +27,25 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + + + + + + + + + version = "1.7"> @@ -27,8 +27,12 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> - - + + + + + version = "1.7"> @@ -27,6 +27,12 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + + + + diff --git a/SecretiveTests/SecretiveTests.swift b/SecretiveTests/SecretiveTests.swift index bb99940..59e9889 100644 --- a/SecretiveTests/SecretiveTests.swift +++ b/SecretiveTests/SecretiveTests.swift @@ -24,11 +24,5 @@ class SecretiveTests: XCTestCase { // 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. - } - } }