From 11b590ec9fbb2793bb0e977822ae938310415c19 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 21 Nov 2024 15:38:43 -0500 Subject: [PATCH] edited for testing --- Neuro AppTests/Neuro_AppTests.swift | 6 +- .../project.pbxproj | 121 ++++++++++++++++++ .../xcshareddata/swiftpm/Package.resolved | 96 -------------- .../xcshareddata/xcschemes/Neuro App.xcscheme | 13 ++ 4 files changed, 137 insertions(+), 99 deletions(-) delete mode 100644 Neurology-iOS-Client-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/Neuro AppTests/Neuro_AppTests.swift b/Neuro AppTests/Neuro_AppTests.swift index c76299b..757638a 100755 --- a/Neuro AppTests/Neuro_AppTests.swift +++ b/Neuro AppTests/Neuro_AppTests.swift @@ -2,11 +2,10 @@ // Neuro_AppTests.swift // Neuro AppTests // -// Created by David Ferrufino on 8/1/24. +// Created by David Ferrufino on 11/21/24. // import XCTest -@testable import Neuro_App final class Neuro_AppTests: XCTestCase { @@ -19,6 +18,7 @@ final class Neuro_AppTests: XCTestCase { } func testExample() throws { + XCTAssertTrue(true, "This test always passes.") // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. // Any test you write for XCTest can be annotated as throws and async. @@ -28,7 +28,7 @@ final class Neuro_AppTests: XCTestCase { func testPerformanceExample() throws { // This is an example of a performance test case. - self.measure { + measure { // Put the code you want to measure the time of here. } } diff --git a/Neurology-iOS-Client-App.xcodeproj/project.pbxproj b/Neurology-iOS-Client-App.xcodeproj/project.pbxproj index c54e5cf..d7782fd 100644 --- a/Neurology-iOS-Client-App.xcodeproj/project.pbxproj +++ b/Neurology-iOS-Client-App.xcodeproj/project.pbxproj @@ -20,6 +20,7 @@ 088B34922C5C03A100094A02 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 088B34912C5C03A100094A02 /* Assets.xcassets */; }; 088B34952C5C03A100094A02 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 088B34942C5C03A100094A02 /* Preview Assets.xcassets */; }; 088B349A2C5C03DA00094A02 /* WebRTC in Frameworks */ = {isa = PBXBuildFile; productRef = 088B34992C5C03DA00094A02 /* WebRTC */; }; + 0894AAB22CEFD14500387B0C /* Neuro_AppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0894AAB12CEFD14500387B0C /* Neuro_AppTests.swift */; }; 08A99ED52C6297E20046D4A7 /* SignInView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08A99ED42C6297E20046D4A7 /* SignInView.swift */; }; 08A99ED82C6297FA0046D4A7 /* NativeWebSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08A99ED62C6297FA0046D4A7 /* NativeWebSocket.swift */; }; 08A99ED92C6297FA0046D4A7 /* WebSocketProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08A99ED72C6297FA0046D4A7 /* WebSocketProvider.swift */; }; @@ -32,6 +33,16 @@ 60B7690F2CA32CE000CC8343 /* SavedFormsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 60B7690E2CA32CD500CC8343 /* SavedFormsView.swift */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 0894AAB32CEFD14500387B0C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 60E860E92C5192DE0097826E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 088B348A2C5C03A000094A02; + remoteInfo = "Neuro App"; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXFileReference section */ 080411D72C6A88EB0019364A /* Neuro App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Neuro App.entitlements"; sourceTree = ""; }; 080411D82C6BB1C60019364A /* PushNotificationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PushNotificationManager.swift; sourceTree = ""; }; @@ -48,6 +59,8 @@ 088B348D2C5C03A000094A02 /* Neuro_AppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Neuro_AppApp.swift; sourceTree = ""; }; 088B34912C5C03A100094A02 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 088B34942C5C03A100094A02 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 0894AAAF2CEFD14500387B0C /* Neuro AppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Neuro AppTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 0894AAB12CEFD14500387B0C /* Neuro_AppTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Neuro_AppTests.swift; sourceTree = ""; }; 08A99ED42C6297E20046D4A7 /* SignInView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SignInView.swift; sourceTree = ""; }; 08A99ED62C6297FA0046D4A7 /* NativeWebSocket.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeWebSocket.swift; sourceTree = ""; }; 08A99ED72C6297FA0046D4A7 /* WebSocketProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSocketProvider.swift; sourceTree = ""; }; @@ -81,6 +94,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0894AAAC2CEFD14500387B0C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -152,6 +172,14 @@ path = "Preview Content"; sourceTree = ""; }; + 0894AAB02CEFD14500387B0C /* Neuro AppTests */ = { + isa = PBXGroup; + children = ( + 0894AAB12CEFD14500387B0C /* Neuro_AppTests.swift */, + ); + path = "Neuro AppTests"; + sourceTree = ""; + }; 08FBF1D12C59B78600F4AE9A /* WebSocketProvider */ = { isa = PBXGroup; children = ( @@ -178,8 +206,10 @@ 088B345C2C5C023F00094A02 /* Neuro App */, 088B346D2C5C024000094A02 /* Neuro AppTests */, 088B34772C5C024000094A02 /* Neuro AppUITests */, + 0894AAB02CEFD14500387B0C /* Neuro AppTests */, 60E861222C5A84E00097826E /* Frameworks */, 088B348B2C5C03A000094A02 /* Neuro App.app */, + 0894AAAF2CEFD14500387B0C /* Neuro AppTests.xctest */, ); sourceTree = ""; }; @@ -214,6 +244,24 @@ productReference = 088B348B2C5C03A000094A02 /* Neuro App.app */; productType = "com.apple.product-type.application"; }; + 0894AAAE2CEFD14500387B0C /* Neuro AppTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 0894AAB72CEFD14500387B0C /* Build configuration list for PBXNativeTarget "Neuro AppTests" */; + buildPhases = ( + 0894AAAB2CEFD14500387B0C /* Sources */, + 0894AAAC2CEFD14500387B0C /* Frameworks */, + 0894AAAD2CEFD14500387B0C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 0894AAB42CEFD14500387B0C /* PBXTargetDependency */, + ); + name = "Neuro AppTests"; + productName = "Neuro AppTests"; + productReference = 0894AAAF2CEFD14500387B0C /* Neuro AppTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -230,6 +278,10 @@ 088B348A2C5C03A000094A02 = { CreatedOnToolsVersion = 15.3; }; + 0894AAAE2CEFD14500387B0C = { + CreatedOnToolsVersion = 15.3; + TestTargetID = 088B348A2C5C03A000094A02; + }; }; }; buildConfigurationList = 60E860EC2C5192DE0097826E /* Build configuration list for PBXProject "Neurology-iOS-Client-App" */; @@ -250,6 +302,7 @@ projectRoot = ""; targets = ( 088B348A2C5C03A000094A02 /* Neuro App */, + 0894AAAE2CEFD14500387B0C /* Neuro AppTests */, ); }; /* End PBXProject section */ @@ -264,6 +317,13 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0894AAAD2CEFD14500387B0C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -293,8 +353,24 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + 0894AAAB2CEFD14500387B0C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0894AAB22CEFD14500387B0C /* Neuro_AppTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 0894AAB42CEFD14500387B0C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 088B348A2C5C03A000094A02 /* Neuro App */; + targetProxy = 0894AAB32CEFD14500387B0C /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin XCBuildConfiguration section */ 088B34972C5C03A100094A02 /* Debug */ = { isa = XCBuildConfiguration; @@ -368,6 +444,42 @@ }; name = Release; }; + 0894AAB52CEFD14500387B0C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = VL7R24L9ZQ; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "vcuse.Neuro-AppTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Neuro App.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Neuro App"; + }; + name = Debug; + }; + 0894AAB62CEFD14500387B0C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = VL7R24L9ZQ; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "vcuse.Neuro-AppTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Neuro App.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Neuro App"; + }; + name = Release; + }; 60E861132C5192DF0097826E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -501,6 +613,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Debug; }; + 0894AAB72CEFD14500387B0C /* Build configuration list for PBXNativeTarget "Neuro AppTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 0894AAB52CEFD14500387B0C /* Debug */, + 0894AAB62CEFD14500387B0C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; 60E860EC2C5192DE0097826E /* Build configuration list for PBXProject "Neurology-iOS-Client-App" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Neurology-iOS-Client-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Neurology-iOS-Client-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 5ff8a9e..0000000 --- a/Neurology-iOS-Client-App.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,96 +0,0 @@ -{ - "originHash" : "54eba1f7143eca22bdf177620cd841d4c5c3863dcace4ba3ef18ecf24fcf3474", - "pins" : [ - { - "identity" : "collectionconcurrencykit", - "kind" : "remoteSourceControl", - "location" : "https://github.com/JohnSundell/CollectionConcurrencyKit.git", - "state" : { - "revision" : "b4f23e24b5a1bff301efc5e70871083ca029ff95", - "version" : "0.2.0" - } - }, - { - "identity" : "cryptoswift", - "kind" : "remoteSourceControl", - "location" : "https://github.com/krzyzanowskim/CryptoSwift.git", - "state" : { - "revision" : "678d442c6f7828def400a70ae15968aef67ef52d", - "version" : "1.8.3" - } - }, - { - "identity" : "sourcekitten", - "kind" : "remoteSourceControl", - "location" : "https://github.com/jpsim/SourceKitten.git", - "state" : { - "revision" : "fd4df99170f5e9d7cf9aa8312aa8506e0e7a44e7", - "version" : "0.35.0" - } - }, - { - "identity" : "swift-argument-parser", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-argument-parser.git", - "state" : { - "revision" : "41982a3656a71c768319979febd796c6fd111d5c", - "version" : "1.5.0" - } - }, - { - "identity" : "swift-syntax", - "kind" : "remoteSourceControl", - "location" : "https://github.com/swiftlang/swift-syntax.git", - "state" : { - "revision" : "515f79b522918f83483068d99c68daeb5116342d", - "version" : "600.0.0-prerelease-2024-08-14" - } - }, - { - "identity" : "swiftlint", - "kind" : "remoteSourceControl", - "location" : "https://github.com/realm/SwiftLint", - "state" : { - "revision" : "168fb98ed1f3e343d703ecceaf518b6cf565207b", - "version" : "0.57.0" - } - }, - { - "identity" : "swiftytexttable", - "kind" : "remoteSourceControl", - "location" : "https://github.com/scottrhoyt/SwiftyTextTable.git", - "state" : { - "revision" : "c6df6cf533d120716bff38f8ff9885e1ce2a4ac3", - "version" : "0.9.0" - } - }, - { - "identity" : "swxmlhash", - "kind" : "remoteSourceControl", - "location" : "https://github.com/drmohundro/SWXMLHash.git", - "state" : { - "revision" : "a853604c9e9a83ad9954c7e3d2a565273982471f", - "version" : "7.0.2" - } - }, - { - "identity" : "webrtc", - "kind" : "remoteSourceControl", - "location" : "https://github.com/stasel/WebRTC.git", - "state" : { - "revision" : "52dc517f23053538ad0e2e14280df8f94a3ec1a7", - "version" : "126.0.0" - } - }, - { - "identity" : "yams", - "kind" : "remoteSourceControl", - "location" : "https://github.com/jpsim/Yams.git", - "state" : { - "revision" : "3036ba9d69cf1fd04d433527bc339dc0dc75433d", - "version" : "5.1.3" - } - } - ], - "version" : 3 -} diff --git a/Neurology-iOS-Client-App.xcodeproj/xcshareddata/xcschemes/Neuro App.xcscheme b/Neurology-iOS-Client-App.xcodeproj/xcshareddata/xcschemes/Neuro App.xcscheme index 43ff2fa..f380d39 100644 --- a/Neurology-iOS-Client-App.xcodeproj/xcshareddata/xcschemes/Neuro App.xcscheme +++ b/Neurology-iOS-Client-App.xcodeproj/xcshareddata/xcschemes/Neuro App.xcscheme @@ -38,6 +38,19 @@ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES" shouldAutocreateTestPlan = "YES"> + + + + + +