diff --git a/WaterTracker Watch AppTests/WaterTracer_Watch_AppTests.swift b/WaterTracker Watch AppTests/WaterTracer_Watch_AppTests.swift deleted file mode 100644 index a2592ff..0000000 --- a/WaterTracker Watch AppTests/WaterTracer_Watch_AppTests.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// WaterTracker_Watch_AppTests.swift -// WaterTracker Watch AppTests -// -// Created by Yu Liang on 10/26/24. -// - -import Testing -@testable import WaterTracker_Watch_App - -struct WaterTracker_Watch_AppTests { - - @Test func example() async throws { - // Write your test here and use APIs like `#expect(...)` to check expected conditions. - } - -} diff --git a/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITests.swift b/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITests.swift deleted file mode 100644 index b8c9030..0000000 --- a/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITests.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// WaterTracker_Watch_AppUITests.swift -// WaterTracker Watch AppUITests -// -// Created by Yu Liang on 10/26/24. -// - -import XCTest - -final class WaterTracker_Watch_AppUITests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - - // In UI tests it is usually best to stop immediately when a failure occurs. - continueAfterFailure = false - - // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - @MainActor - func testExample() throws { - // UI tests must launch the application that they test. - let app = XCUIApplication() - app.launch() - - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - @MainActor - func testLaunchPerformance() throws { - if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { - // This measures how long it takes to launch your application. - measure(metrics: [XCTApplicationLaunchMetric()]) { - XCUIApplication().launch() - } - } - } -} diff --git a/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITestsLaunchTests.swift b/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITestsLaunchTests.swift deleted file mode 100644 index 4e7f6f5..0000000 --- a/WaterTracker Watch AppUITests/WaterTracer_Watch_AppUITestsLaunchTests.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// WaterTracker_Watch_AppUITestsLaunchTests.swift -// WaterTracker Watch AppUITests -// -// Created by Yu Liang on 10/26/24. -// - -import XCTest - -final class WaterTracker_Watch_AppUITestsLaunchTests: XCTestCase { - - override class var runsForEachTargetApplicationUIConfiguration: Bool { - true - } - - override func setUpWithError() throws { - continueAfterFailure = false - } - - @MainActor - func testLaunch() throws { - let app = XCUIApplication() - app.launch() - - // Insert steps here to perform after app launch but before taking a screenshot, - // such as logging into a test account or navigating somewhere in the app - - let attachment = XCTAttachment(screenshot: app.screenshot()) - attachment.name = "Launch Screen" - attachment.lifetime = .keepAlways - add(attachment) - } -} diff --git a/WaterTracker.xcodeproj/project.pbxproj b/WaterTracker.xcodeproj/project.pbxproj index 729417c..acd4bec 100644 --- a/WaterTracker.xcodeproj/project.pbxproj +++ b/WaterTracker.xcodeproj/project.pbxproj @@ -86,20 +86,6 @@ remoteGlobalIDString = 295CA1AB2CD9AA9E00FDFC2B; remoteInfo = "WaterTracker Watch WidgetExtension"; }; - 297759222CCD881D00D54F00 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 297759092CCD881B00D54F00 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 297759102CCD881C00D54F00; - remoteInfo = WaterTracker; - }; - 2977592C2CCD881D00D54F00 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 297759092CCD881B00D54F00 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 297759102CCD881C00D54F00; - remoteInfo = WaterTracker; - }; 297759392CCD881D00D54F00 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 297759092CCD881B00D54F00 /* Project object */; @@ -107,20 +93,6 @@ remoteGlobalIDString = 297759362CCD881D00D54F00; remoteInfo = "WaterTracker Watch App"; }; - 2977594A2CCD881E00D54F00 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 297759092CCD881B00D54F00 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 297759362CCD881D00D54F00; - remoteInfo = "WaterTracker Watch App"; - }; - 297759542CCD881E00D54F00 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 297759092CCD881B00D54F00 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 297759362CCD881D00D54F00; - remoteInfo = "WaterTracker Watch App"; - }; 29BC97422CD971E400E9F55F /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 297759092CCD881B00D54F00 /* Project object */; @@ -173,11 +145,7 @@ 2964344E2CD9D6A4008429BC /* DateHandling.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DateHandling.swift; sourceTree = ""; }; 2965A2612CCF254500E75A0F /* CupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CupView.swift; sourceTree = ""; }; 297759112CCD881C00D54F00 /* WaterTracker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WaterTracker.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 297759212CCD881D00D54F00 /* WaterTrackerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WaterTrackerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 2977592B2CCD881D00D54F00 /* WaterTrackerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WaterTrackerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 297759372CCD881D00D54F00 /* WaterTracker Watch App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "WaterTracker Watch App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 297759492CCD881E00D54F00 /* WaterTracker Watch AppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "WaterTracker Watch AppTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 297759532CCD881E00D54F00 /* WaterTracker Watch AppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "WaterTracker Watch AppUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 29A489522CD02922005AA4A1 /* InvisibleSlider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InvisibleSlider.swift; sourceTree = ""; }; 29A489582CD07F7B005AA4A1 /* HealthKitManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HealthKitManager.swift; sourceTree = ""; }; 29A4897C2CD16841005AA4A1 /* CupShape.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CupShape.swift; sourceTree = ""; }; @@ -247,31 +215,11 @@ path = WaterTracker; sourceTree = ""; }; - 297759242CCD881D00D54F00 /* WaterTrackerTests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = WaterTrackerTests; - sourceTree = ""; - }; - 2977592E2CCD881D00D54F00 /* WaterTrackerUITests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = WaterTrackerUITests; - sourceTree = ""; - }; 2977593B2CCD881D00D54F00 /* WaterTracker Watch App */ = { isa = PBXFileSystemSynchronizedRootGroup; path = "WaterTracker Watch App"; sourceTree = ""; }; - 2977594C2CCD881E00D54F00 /* WaterTracker Watch AppTests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = "WaterTracker Watch AppTests"; - sourceTree = ""; - }; - 297759562CCD881E00D54F00 /* WaterTracker Watch AppUITests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = "WaterTracker Watch AppUITests"; - sourceTree = ""; - }; 29BC97382CD971E300E9F55F /* WaterTracker Widget */ = { isa = PBXFileSystemSynchronizedRootGroup; exceptions = ( @@ -299,20 +247,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2977591E2CCD881D00D54F00 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 297759282CCD881D00D54F00 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 297759342CCD881D00D54F00 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -320,20 +254,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 297759462CCD881E00D54F00 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 297759502CCD881E00D54F00 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 29BC972F2CD971E300E9F55F /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -357,11 +277,7 @@ 29BC974A2CD9720B00E9F55F /* WaterTracker WidgetExtension.entitlements */, 29D8FE7F2CCECD8200504B17 /* Shared */, 297759132CCD881C00D54F00 /* WaterTracker */, - 297759242CCD881D00D54F00 /* WaterTrackerTests */, - 2977592E2CCD881D00D54F00 /* WaterTrackerUITests */, 2977593B2CCD881D00D54F00 /* WaterTracker Watch App */, - 2977594C2CCD881E00D54F00 /* WaterTracker Watch AppTests */, - 297759562CCD881E00D54F00 /* WaterTracker Watch AppUITests */, 29BC97382CD971E300E9F55F /* WaterTracker Widget */, 295CA1AF2CD9AA9E00FDFC2B /* WaterTracker Watch Widget */, 29BC97332CD971E300E9F55F /* Frameworks */, @@ -374,11 +290,7 @@ isa = PBXGroup; children = ( 297759112CCD881C00D54F00 /* WaterTracker.app */, - 297759212CCD881D00D54F00 /* WaterTrackerTests.xctest */, - 2977592B2CCD881D00D54F00 /* WaterTrackerUITests.xctest */, 297759372CCD881D00D54F00 /* WaterTracker Watch App.app */, - 297759492CCD881E00D54F00 /* WaterTracker Watch AppTests.xctest */, - 297759532CCD881E00D54F00 /* WaterTracker Watch AppUITests.xctest */, 29BC97322CD971E300E9F55F /* WaterTracker WidgetExtension.appex */, 295CA1AC2CD9AA9E00FDFC2B /* WaterTracker Watch WidgetExtension.appex */, ); @@ -509,52 +421,6 @@ productReference = 297759112CCD881C00D54F00 /* WaterTracker.app */; productType = "com.apple.product-type.application"; }; - 297759202CCD881D00D54F00 /* WaterTrackerTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 297759642CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTrackerTests" */; - buildPhases = ( - 2977591D2CCD881D00D54F00 /* Sources */, - 2977591E2CCD881D00D54F00 /* Frameworks */, - 2977591F2CCD881D00D54F00 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 297759232CCD881D00D54F00 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 297759242CCD881D00D54F00 /* WaterTrackerTests */, - ); - name = WaterTrackerTests; - packageProductDependencies = ( - ); - productName = WaterTrackerTests; - productReference = 297759212CCD881D00D54F00 /* WaterTrackerTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 2977592A2CCD881D00D54F00 /* WaterTrackerUITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 297759672CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTrackerUITests" */; - buildPhases = ( - 297759272CCD881D00D54F00 /* Sources */, - 297759282CCD881D00D54F00 /* Frameworks */, - 297759292CCD881D00D54F00 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2977592D2CCD881D00D54F00 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 2977592E2CCD881D00D54F00 /* WaterTrackerUITests */, - ); - name = WaterTrackerUITests; - packageProductDependencies = ( - ); - productName = WaterTrackerUITests; - productReference = 2977592B2CCD881D00D54F00 /* WaterTrackerUITests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; 297759362CCD881D00D54F00 /* WaterTracker Watch App */ = { isa = PBXNativeTarget; buildConfigurationList = 2977595D2CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTracker Watch App" */; @@ -579,52 +445,6 @@ productReference = 297759372CCD881D00D54F00 /* WaterTracker Watch App.app */; productType = "com.apple.product-type.application"; }; - 297759482CCD881E00D54F00 /* WaterTracker Watch AppTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2977596A2CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTracker Watch AppTests" */; - buildPhases = ( - 297759452CCD881E00D54F00 /* Sources */, - 297759462CCD881E00D54F00 /* Frameworks */, - 297759472CCD881E00D54F00 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2977594B2CCD881E00D54F00 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 2977594C2CCD881E00D54F00 /* WaterTracker Watch AppTests */, - ); - name = "WaterTracker Watch AppTests"; - packageProductDependencies = ( - ); - productName = "WaterTracker Watch AppTests"; - productReference = 297759492CCD881E00D54F00 /* WaterTracker Watch AppTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 297759522CCD881E00D54F00 /* WaterTracker Watch AppUITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2977596D2CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTracker Watch AppUITests" */; - buildPhases = ( - 2977594F2CCD881E00D54F00 /* Sources */, - 297759502CCD881E00D54F00 /* Frameworks */, - 297759512CCD881E00D54F00 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 297759552CCD881E00D54F00 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 297759562CCD881E00D54F00 /* WaterTracker Watch AppUITests */, - ); - name = "WaterTracker Watch AppUITests"; - packageProductDependencies = ( - ); - productName = "WaterTracker Watch AppUITests"; - productReference = 297759532CCD881E00D54F00 /* WaterTracker Watch AppUITests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; 29BC97312CD971E300E9F55F /* WaterTracker WidgetExtension */ = { isa = PBXNativeTarget; buildConfigurationList = 29BC97482CD971E400E9F55F /* Build configuration list for PBXNativeTarget "WaterTracker WidgetExtension" */; @@ -663,25 +483,9 @@ 297759102CCD881C00D54F00 = { CreatedOnToolsVersion = 16.0; }; - 297759202CCD881D00D54F00 = { - CreatedOnToolsVersion = 16.0; - TestTargetID = 297759102CCD881C00D54F00; - }; - 2977592A2CCD881D00D54F00 = { - CreatedOnToolsVersion = 16.0; - TestTargetID = 297759102CCD881C00D54F00; - }; 297759362CCD881D00D54F00 = { CreatedOnToolsVersion = 16.0; }; - 297759482CCD881E00D54F00 = { - CreatedOnToolsVersion = 16.0; - TestTargetID = 297759362CCD881D00D54F00; - }; - 297759522CCD881E00D54F00 = { - CreatedOnToolsVersion = 16.0; - TestTargetID = 297759362CCD881D00D54F00; - }; 29BC97312CD971E300E9F55F = { CreatedOnToolsVersion = 16.1; }; @@ -703,11 +507,7 @@ projectRoot = ""; targets = ( 297759102CCD881C00D54F00 /* WaterTracker */, - 297759202CCD881D00D54F00 /* WaterTrackerTests */, - 2977592A2CCD881D00D54F00 /* WaterTrackerUITests */, 297759362CCD881D00D54F00 /* WaterTracker Watch App */, - 297759482CCD881E00D54F00 /* WaterTracker Watch AppTests */, - 297759522CCD881E00D54F00 /* WaterTracker Watch AppUITests */, 29BC97312CD971E300E9F55F /* WaterTracker WidgetExtension */, 295CA1AB2CD9AA9E00FDFC2B /* WaterTracker Watch WidgetExtension */, ); @@ -737,20 +537,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2977591F2CCD881D00D54F00 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 297759292CCD881D00D54F00 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 297759352CCD881D00D54F00 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -762,20 +548,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 297759472CCD881E00D54F00 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 297759512CCD881E00D54F00 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 29BC97302CD971E300E9F55F /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -827,20 +599,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 2977591D2CCD881D00D54F00 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 297759272CCD881D00D54F00 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 297759332CCD881D00D54F00 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -863,20 +621,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 297759452CCD881E00D54F00 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2977594F2CCD881E00D54F00 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 29BC972E2CD971E300E9F55F /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -900,31 +644,11 @@ target = 295CA1AB2CD9AA9E00FDFC2B /* WaterTracker Watch WidgetExtension */; targetProxy = 295CA1B72CD9AA9F00FDFC2B /* PBXContainerItemProxy */; }; - 297759232CCD881D00D54F00 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 297759102CCD881C00D54F00 /* WaterTracker */; - targetProxy = 297759222CCD881D00D54F00 /* PBXContainerItemProxy */; - }; - 2977592D2CCD881D00D54F00 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 297759102CCD881C00D54F00 /* WaterTracker */; - targetProxy = 2977592C2CCD881D00D54F00 /* PBXContainerItemProxy */; - }; 2977593A2CCD881D00D54F00 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 297759362CCD881D00D54F00 /* WaterTracker Watch App */; targetProxy = 297759392CCD881D00D54F00 /* PBXContainerItemProxy */; }; - 2977594B2CCD881E00D54F00 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 297759362CCD881D00D54F00 /* WaterTracker Watch App */; - targetProxy = 2977594A2CCD881E00D54F00 /* PBXContainerItemProxy */; - }; - 297759552CCD881E00D54F00 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 297759362CCD881D00D54F00 /* WaterTracker Watch App */; - targetProxy = 297759542CCD881E00D54F00 /* PBXContainerItemProxy */; - }; 29BC97432CD971E400E9F55F /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 29BC97312CD971E300E9F55F /* WaterTracker WidgetExtension */; @@ -1278,166 +1002,6 @@ }; name = Release; }; - 297759652CCD881E00D54F00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = SteveLeung.WaterTrackerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WaterTracker.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/WaterTracker"; - }; - name = Debug; - }; - 297759662CCD881E00D54F00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = SteveLeung.WaterTrackerTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WaterTracker.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/WaterTracker"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 297759682CCD881E00D54F00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = SteveLeung.WaterTrackerUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = WaterTracker; - }; - name = Debug; - }; - 297759692CCD881E00D54F00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.0; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = SteveLeung.WaterTrackerUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = WaterTracker; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 2977596B2CCD881E00D54F00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "SteveLeung.WaterTracker-Watch-AppTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WaterTracker Watch App.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/WaterTracker Watch App"; - WATCHOS_DEPLOYMENT_TARGET = 11.0; - }; - name = Debug; - }; - 2977596C2CCD881E00D54F00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "SteveLeung.WaterTracker-Watch-AppTests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/WaterTracker Watch App.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/WaterTracker Watch App"; - VALIDATE_PRODUCT = YES; - WATCHOS_DEPLOYMENT_TARGET = 11.0; - }; - name = Release; - }; - 2977596E2CCD881E00D54F00 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "SteveLeung.WaterTracker-Watch-AppUITests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - TEST_TARGET_NAME = "WaterTracker Watch App"; - WATCHOS_DEPLOYMENT_TARGET = 11.0; - }; - name = Debug; - }; - 2977596F2CCD881E00D54F00 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = 47X549R648; - GENERATE_INFOPLIST_FILE = YES; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = "SteveLeung.WaterTracker-Watch-AppUITests"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = watchos; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 4; - TEST_TARGET_NAME = "WaterTracker Watch App"; - VALIDATE_PRODUCT = YES; - WATCHOS_DEPLOYMENT_TARGET = 11.0; - }; - name = Release; - }; 29BC97462CD971E400E9F55F /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1544,42 +1108,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 297759642CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTrackerTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 297759652CCD881E00D54F00 /* Debug */, - 297759662CCD881E00D54F00 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 297759672CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTrackerUITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 297759682CCD881E00D54F00 /* Debug */, - 297759692CCD881E00D54F00 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2977596A2CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTracker Watch AppTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2977596B2CCD881E00D54F00 /* Debug */, - 2977596C2CCD881E00D54F00 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2977596D2CCD881E00D54F00 /* Build configuration list for PBXNativeTarget "WaterTracker Watch AppUITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2977596E2CCD881E00D54F00 /* Debug */, - 2977596F2CCD881E00D54F00 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; 29BC97482CD971E400E9F55F /* Build configuration list for PBXNativeTarget "WaterTracker WidgetExtension" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/WaterTrackerTests/WaterTracerTests.swift b/WaterTrackerTests/WaterTracerTests.swift deleted file mode 100644 index 9d99ca7..0000000 --- a/WaterTrackerTests/WaterTracerTests.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// WaterTrackerTests.swift -// WaterTrackerTests -// -// Created by Yu Liang on 10/26/24. -// - -import Testing -@testable import WaterTracker - -struct WaterTrackerTests { - - @Test func example() async throws { - // Write your test here and use APIs like `#expect(...)` to check expected conditions. - } - -} diff --git a/WaterTrackerUITests/WaterTracerUITests.swift b/WaterTrackerUITests/WaterTracerUITests.swift deleted file mode 100644 index 1b51a50..0000000 --- a/WaterTrackerUITests/WaterTracerUITests.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// WaterTrackerUITests.swift -// WaterTrackerUITests -// -// Created by Yu Liang on 10/26/24. -// - -import XCTest - -final class WaterTrackerUITests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - - // In UI tests it is usually best to stop immediately when a failure occurs. - continueAfterFailure = false - - // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - @MainActor - func testExample() throws { - // UI tests must launch the application that they test. - let app = XCUIApplication() - app.launch() - - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - @MainActor - func testLaunchPerformance() throws { - if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { - // This measures how long it takes to launch your application. - measure(metrics: [XCTApplicationLaunchMetric()]) { - XCUIApplication().launch() - } - } - } -} diff --git a/WaterTrackerUITests/WaterTracerUITestsLaunchTests.swift b/WaterTrackerUITests/WaterTracerUITestsLaunchTests.swift deleted file mode 100644 index 921965d..0000000 --- a/WaterTrackerUITests/WaterTracerUITestsLaunchTests.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// WaterTrackerUITestsLaunchTests.swift -// WaterTrackerUITests -// -// Created by Yu Liang on 10/26/24. -// - -import XCTest - -final class WaterTrackerUITestsLaunchTests: XCTestCase { - - override class var runsForEachTargetApplicationUIConfiguration: Bool { - true - } - - override func setUpWithError() throws { - continueAfterFailure = false - } - - @MainActor - func testLaunch() throws { - let app = XCUIApplication() - app.launch() - - // Insert steps here to perform after app launch but before taking a screenshot, - // such as logging into a test account or navigating somewhere in the app - - let attachment = XCTAttachment(screenshot: app.screenshot()) - attachment.name = "Launch Screen" - attachment.lifetime = .keepAlways - add(attachment) - } -}