Skip to content

Commit

Permalink
edited for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
deHank committed Nov 21, 2024
1 parent 76e793d commit 11b590e
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 99 deletions.
6 changes: 3 additions & 3 deletions Neuro AppTests/Neuro_AppTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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.
Expand All @@ -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.
}
}
Expand Down
121 changes: 121 additions & 0 deletions Neurology-iOS-Client-App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand All @@ -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 = "<group>"; };
080411D82C6BB1C60019364A /* PushNotificationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PushNotificationManager.swift; sourceTree = "<group>"; };
Expand All @@ -48,6 +59,8 @@
088B348D2C5C03A000094A02 /* Neuro_AppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Neuro_AppApp.swift; sourceTree = "<group>"; };
088B34912C5C03A100094A02 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
088B34942C5C03A100094A02 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
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 = "<group>"; };
08A99ED42C6297E20046D4A7 /* SignInView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SignInView.swift; sourceTree = "<group>"; };
08A99ED62C6297FA0046D4A7 /* NativeWebSocket.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeWebSocket.swift; sourceTree = "<group>"; };
08A99ED72C6297FA0046D4A7 /* WebSocketProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebSocketProvider.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -81,6 +94,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
0894AAAC2CEFD14500387B0C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -152,6 +172,14 @@
path = "Preview Content";
sourceTree = "<group>";
};
0894AAB02CEFD14500387B0C /* Neuro AppTests */ = {
isa = PBXGroup;
children = (
0894AAB12CEFD14500387B0C /* Neuro_AppTests.swift */,
);
path = "Neuro AppTests";
sourceTree = "<group>";
};
08FBF1D12C59B78600F4AE9A /* WebSocketProvider */ = {
isa = PBXGroup;
children = (
Expand All @@ -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 = "<group>";
};
Expand Down Expand Up @@ -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 */
Expand All @@ -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" */;
Expand All @@ -250,6 +302,7 @@
projectRoot = "";
targets = (
088B348A2C5C03A000094A02 /* Neuro App */,
0894AAAE2CEFD14500387B0C /* Neuro AppTests */,
);
};
/* End PBXProject section */
Expand All @@ -264,6 +317,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
0894AAAD2CEFD14500387B0C /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 = (
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0894AAAE2CEFD14500387B0C"
BuildableName = "Neuro AppTests.xctest"
BlueprintName = "Neuro AppTests"
ReferencedContainer = "container:Neurology-iOS-Client-App.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down

0 comments on commit 11b590e

Please sign in to comment.