Mercurial > public > lazybear
changeset 359:3d6f0329d691
Add tests
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Fri, 16 Apr 2021 18:20:31 +0200 |
parents | 280cbc5653b5 |
children | 236fe7c301fe 1b3ba58730e1 |
files | LazyBear.xcodeproj/LazyBear.xctestplan LazyBear.xcodeproj/project.pbxproj LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme LazyBearTests/Info.plist LazyBearTests/LazyBearTests.swift LazyBearUITests/Info.plist LazyBearUITests/LazyBearUITests.swift |
diffstat | 8 files changed, 424 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBear.xcodeproj/LazyBear.xctestplan Fri Apr 16 18:20:31 2021 +0200 @@ -0,0 +1,31 @@ +{ + "configurations" : [ + { + "id" : "602121CE-6768-43D3-A15F-A30A0E1E3C92", + "name" : "Configuration 1", + "options" : { + + } + } + ], + "defaultOptions" : { + + }, + "testTargets" : [ + { + "target" : { + "containerPath" : "container:LazyBear.xcodeproj", + "identifier" : "950C570F2629EF9100F234FE", + "name" : "LazyBearTests" + } + }, + { + "target" : { + "containerPath" : "container:LazyBear.xcodeproj", + "identifier" : "950C571F2629EFC200F234FE", + "name" : "LazyBearUITests" + } + } + ], + "version" : 1 +}
--- a/LazyBear.xcodeproj/project.pbxproj Fri Apr 16 17:03:48 2021 +0200 +++ b/LazyBear.xcodeproj/project.pbxproj Fri Apr 16 18:20:31 2021 +0200 @@ -8,6 +8,8 @@ /* Begin PBXBuildFile section */ 950C36E3260FB6180081CF53 /* HapticsManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950C36E2260FB6180081CF53 /* HapticsManager.swift */; }; + 950C57132629EF9100F234FE /* LazyBearTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950C57122629EF9100F234FE /* LazyBearTests.swift */; }; + 950C57232629EFC200F234FE /* LazyBearUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950C57222629EFC200F234FE /* LazyBearUITests.swift */; }; 950D0E192618AA4900D17AD7 /* CompanyList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950D0E182618AA4900D17AD7 /* CompanyList.swift */; }; 950D0E292618AEC800D17AD7 /* SearchedCompanyItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950D0E282618AEC800D17AD7 /* SearchedCompanyItem.swift */; }; 950D0E2D2618B2B900D17AD7 /* HelpSheet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 950D0E2C2618B2B900D17AD7 /* HelpSheet.swift */; }; @@ -57,8 +59,32 @@ 95FBE0DC2619CA7200440386 /* ProfileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95FBE0DB2619CA7200440386 /* ProfileView.swift */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 950C57152629EF9100F234FE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 95672B8325DDA54700DCBE4A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 95672B8A25DDA54700DCBE4A; + remoteInfo = LazyBear; + }; + 950C57252629EFC200F234FE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 95672B8325DDA54700DCBE4A /* Project object */; + proxyType = 1; + remoteGlobalIDString = 95672B8A25DDA54700DCBE4A; + remoteInfo = LazyBear; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXFileReference section */ 950C36E2260FB6180081CF53 /* HapticsManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HapticsManager.swift; sourceTree = "<group>"; }; + 950C57102629EF9100F234FE /* LazyBearTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LazyBearTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 950C57122629EF9100F234FE /* LazyBearTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LazyBearTests.swift; sourceTree = "<group>"; }; + 950C57142629EF9100F234FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 950C57202629EFC200F234FE /* LazyBearUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LazyBearUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 950C57222629EFC200F234FE /* LazyBearUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LazyBearUITests.swift; sourceTree = "<group>"; }; + 950C57242629EFC200F234FE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; + 950C572D2629F03A00F234FE /* LazyBear.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; name = LazyBear.xctestplan; path = LazyBear.xcodeproj/LazyBear.xctestplan; sourceTree = "<group>"; }; 950D0E182618AA4900D17AD7 /* CompanyList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompanyList.swift; sourceTree = "<group>"; }; 950D0E282618AEC800D17AD7 /* SearchedCompanyItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchedCompanyItem.swift; sourceTree = "<group>"; }; 950D0E2C2618B2B900D17AD7 /* HelpSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HelpSheet.swift; sourceTree = "<group>"; }; @@ -111,6 +137,20 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 950C570D2629EF9100F234FE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 950C571D2629EFC200F234FE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 95672B8825DDA54700DCBE4A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -123,6 +163,24 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 950C57112629EF9100F234FE /* LazyBearTests */ = { + isa = PBXGroup; + children = ( + 950C57122629EF9100F234FE /* LazyBearTests.swift */, + 950C57142629EF9100F234FE /* Info.plist */, + ); + path = LazyBearTests; + sourceTree = "<group>"; + }; + 950C57212629EFC200F234FE /* LazyBearUITests */ = { + isa = PBXGroup; + children = ( + 950C57222629EFC200F234FE /* LazyBearUITests.swift */, + 950C57242629EFC200F234FE /* Info.plist */, + ); + path = LazyBearUITests; + sourceTree = "<group>"; + }; 950D0E272618AEBB00D17AD7 /* Helpers */ = { isa = PBXGroup; children = ( @@ -140,13 +198,6 @@ path = Welcome; sourceTree = "<group>"; }; - 95201A36260CAD36007D5300 /* Tests */ = { - isa = PBXGroup; - children = ( - ); - path = Tests; - sourceTree = "<group>"; - }; 952045132610C7A200A76362 /* Global functions */ = { isa = PBXGroup; children = ( @@ -216,7 +267,10 @@ 95672B8225DDA54700DCBE4A = { isa = PBXGroup; children = ( + 950C572D2629F03A00F234FE /* LazyBear.xctestplan */, 95672B8D25DDA54700DCBE4A /* LazyBear */, + 950C57112629EF9100F234FE /* LazyBearTests */, + 950C57212629EFC200F234FE /* LazyBearUITests */, 95672B8C25DDA54700DCBE4A /* Products */, 958A735025E0170900FD7ECA /* Frameworks */, ); @@ -226,6 +280,8 @@ isa = PBXGroup; children = ( 95672B8B25DDA54700DCBE4A /* LazyBear.app */, + 950C57102629EF9100F234FE /* LazyBearTests.xctest */, + 950C57202629EFC200F234FE /* LazyBearUITests.xctest */, ); name = Products; sourceTree = "<group>"; @@ -246,7 +302,6 @@ 952045132610C7A200A76362 /* Global functions */, 954D7E9D260BBA5200A13C50 /* Global Models */, 9523ED402615BD93006D3D6F /* Resources */, - 95201A36260CAD36007D5300 /* Tests */, 95672B9425DDA54700DCBE4A /* Preview Content */, ); path = LazyBear; @@ -342,6 +397,42 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 950C570F2629EF9100F234FE /* LazyBearTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 950C57172629EF9100F234FE /* Build configuration list for PBXNativeTarget "LazyBearTests" */; + buildPhases = ( + 950C570C2629EF9100F234FE /* Sources */, + 950C570D2629EF9100F234FE /* Frameworks */, + 950C570E2629EF9100F234FE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 950C57162629EF9100F234FE /* PBXTargetDependency */, + ); + name = LazyBearTests; + productName = LazyBearTests; + productReference = 950C57102629EF9100F234FE /* LazyBearTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 950C571F2629EFC200F234FE /* LazyBearUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 950C57272629EFC200F234FE /* Build configuration list for PBXNativeTarget "LazyBearUITests" */; + buildPhases = ( + 950C571C2629EFC200F234FE /* Sources */, + 950C571D2629EFC200F234FE /* Frameworks */, + 950C571E2629EFC200F234FE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 950C57262629EFC200F234FE /* PBXTargetDependency */, + ); + name = LazyBearUITests; + productName = LazyBearUITests; + productReference = 950C57202629EFC200F234FE /* LazyBearUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; 95672B8A25DDA54700DCBE4A /* LazyBear */ = { isa = PBXNativeTarget; buildConfigurationList = 95672B9F25DDA54800DCBE4A /* Build configuration list for PBXNativeTarget "LazyBear" */; @@ -371,6 +462,14 @@ LastSwiftUpdateCheck = 1240; LastUpgradeCheck = 1240; TargetAttributes = { + 950C570F2629EF9100F234FE = { + CreatedOnToolsVersion = 12.4; + TestTargetID = 95672B8A25DDA54700DCBE4A; + }; + 950C571F2629EFC200F234FE = { + CreatedOnToolsVersion = 12.4; + TestTargetID = 95672B8A25DDA54700DCBE4A; + }; 95672B8A25DDA54700DCBE4A = { CreatedOnToolsVersion = 12.4; }; @@ -393,11 +492,27 @@ projectRoot = ""; targets = ( 95672B8A25DDA54700DCBE4A /* LazyBear */, + 950C570F2629EF9100F234FE /* LazyBearTests */, + 950C571F2629EFC200F234FE /* LazyBearUITests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 950C570E2629EF9100F234FE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 950C571E2629EFC200F234FE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 95672B8925DDA54700DCBE4A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -411,6 +526,22 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 950C570C2629EF9100F234FE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 950C57132629EF9100F234FE /* LazyBearTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 950C571C2629EFC200F234FE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 950C57232629EFC200F234FE /* LazyBearUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 95672B8725DDA54700DCBE4A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -463,7 +594,98 @@ }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 950C57162629EF9100F234FE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 95672B8A25DDA54700DCBE4A /* LazyBear */; + targetProxy = 950C57152629EF9100F234FE /* PBXContainerItemProxy */; + }; + 950C57262629EFC200F234FE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 95672B8A25DDA54700DCBE4A /* LazyBear */; + targetProxy = 950C57252629EFC200F234FE /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin XCBuildConfiguration section */ + 950C57182629EF9100F234FE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MTX83R5H8X; + INFOPLIST_FILE = LazyBearTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.dennistech.LazyBearTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LazyBear.app/LazyBear"; + }; + name = Debug; + }; + 950C57192629EF9100F234FE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MTX83R5H8X; + INFOPLIST_FILE = LazyBearTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.dennistech.LazyBearTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LazyBear.app/LazyBear"; + }; + name = Release; + }; + 950C57282629EFC200F234FE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MTX83R5H8X; + INFOPLIST_FILE = LazyBearUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.dennistech.LazyBearUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = LazyBear; + }; + name = Debug; + }; + 950C57292629EFC200F234FE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = MTX83R5H8X; + INFOPLIST_FILE = LazyBearUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = io.dennistech.LazyBearUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = LazyBear; + }; + name = Release; + }; 95672B9D25DDA54800DCBE4A /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -633,6 +855,24 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 950C57172629EF9100F234FE /* Build configuration list for PBXNativeTarget "LazyBearTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 950C57182629EF9100F234FE /* Debug */, + 950C57192629EF9100F234FE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 950C57272629EFC200F234FE /* Build configuration list for PBXNativeTarget "LazyBearUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 950C57282629EFC200F234FE /* Debug */, + 950C57292629EFC200F234FE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 95672B8625DDA54700DCBE4A /* Build configuration list for PBXProject "LazyBear" */ = { isa = XCConfigurationList; buildConfigurations = (
Binary file LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme Fri Apr 16 17:03:48 2021 +0200 +++ b/LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme Fri Apr 16 18:20:31 2021 +0200 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <Scheme LastUpgradeVersion = "1240" - version = "1.3"> + version = "1.7"> <BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES"> @@ -27,7 +27,33 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> + <TestPlans> + <TestPlanReference + reference = "container:LazyBear.xcodeproj/LazyBear.xctestplan" + default = "YES"> + </TestPlanReference> + </TestPlans> <Testables> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "950C570F2629EF9100F234FE" + BuildableName = "LazyBearTests.xctest" + BlueprintName = "LazyBearTests" + ReferencedContainer = "container:LazyBear.xcodeproj"> + </BuildableReference> + </TestableReference> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "950C571F2629EFC200F234FE" + BuildableName = "LazyBearUITests.xctest" + BlueprintName = "LazyBearUITests" + ReferencedContainer = "container:LazyBear.xcodeproj"> + </BuildableReference> + </TestableReference> </Testables> </TestAction> <LaunchAction
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBearTests/Info.plist Fri Apr 16 18:20:31 2021 +0200 @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>$(DEVELOPMENT_LANGUAGE)</string> + <key>CFBundleExecutable</key> + <string>$(EXECUTABLE_NAME)</string> + <key>CFBundleIdentifier</key> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>$(PRODUCT_NAME)</string> + <key>CFBundlePackageType</key> + <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBearTests/LazyBearTests.swift Fri Apr 16 18:20:31 2021 +0200 @@ -0,0 +1,32 @@ +// +// LazyBearTests.swift +// LazyBearTests +// +// Created by Dennis Concepción Martín on 16/4/21. +// + +import XCTest + +class LazyBearTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // 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. + measure { + // Put the code you want to measure the time of here. + } + } + +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBearUITests/Info.plist Fri Apr 16 18:20:31 2021 +0200 @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>CFBundleDevelopmentRegion</key> + <string>$(DEVELOPMENT_LANGUAGE)</string> + <key>CFBundleExecutable</key> + <string>$(EXECUTABLE_NAME)</string> + <key>CFBundleIdentifier</key> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> + <key>CFBundleInfoDictionaryVersion</key> + <string>6.0</string> + <key>CFBundleName</key> + <string>$(PRODUCT_NAME)</string> + <key>CFBundlePackageType</key> + <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> + <key>CFBundleShortVersionString</key> + <string>1.0</string> + <key>CFBundleVersion</key> + <string>1</string> +</dict> +</plist>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LazyBearUITests/LazyBearUITests.swift Fri Apr 16 18:20:31 2021 +0200 @@ -0,0 +1,42 @@ +// +// LazyBearUITests.swift +// LazyBearUITests +// +// Created by Dennis Concepción Martín on 16/4/21. +// + +import XCTest + +class LazyBearUITests: 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. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +}