comparison LazyBearUITests/LazyBearUITests.swift @ 463:783b567800d9

Starts new version
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sat, 17 Jul 2021 09:33:26 +0100
parents 1b3ba58730e1
children
comparison
equal deleted inserted replaced
462:daeac7c7c586 463:783b567800d9
1 // 1 //
2 // LazyBearUITests.swift 2 // lazybearUITests.swift
3 // LazyBearUITests 3 // lazybearUITests
4 // 4 //
5 // Created by Dennis Concepción Martín on 16/4/21. 5 // Created by Dennis Concepción Martín on 17/07/2021.
6 // 6 //
7 7
8 import XCTest 8 import XCTest
9 9
10 class LazyBearUITests: XCTestCase { 10 class lazybearUITests: XCTestCase {
11 11
12 override func setUpWithError() throws { 12 override func setUpWithError() throws {
13 // Put setup code here. This method is called before the invocation of each test method in the class. 13 // Put setup code here. This method is called before the invocation of each test method in the class.
14 14
15 // In UI tests it is usually best to stop immediately when a failure occurs. 15 // In UI tests it is usually best to stop immediately when a failure occurs.
22 // Put teardown code here. This method is called after the invocation of each test method in the class. 22 // Put teardown code here. This method is called after the invocation of each test method in the class.
23 } 23 }
24 24
25 func testExample() throws { 25 func testExample() throws {
26 // UI tests must launch the application that they test. 26 // UI tests must launch the application that they test.
27
28 let app = XCUIApplication() 27 let app = XCUIApplication()
29 app.launch() 28 app.launch()
30 29
31 // Use recording to get started writing UI tests. 30 // Use recording to get started writing UI tests.
32 // Use XCTAssert and related functions to verify your tests produce the correct results. 31 // Use XCTAssert and related functions to verify your tests produce the correct results.
33 } 32 }
34 33
35 func testLaunchPerformance() throws { 34 func testLaunchPerformance() throws {
36 if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { 35 if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
37 // This measures how long it takes to launch your application. 36 // This measures how long it takes to launch your application.
38 measure(metrics: [XCTApplicationLaunchMetric()]) { 37 measure(metrics: [XCTApplicationLaunchMetric()]) {
39 XCUIApplication().launch() 38 XCUIApplication().launch()
40 } 39 }
41 } 40 }