TalerUITests.swift (1406B)
1 /* 2 * This file is part of GNU Taler, ©2022-23 Taler Systems S.A. 3 * See LICENSE.md 4 */ 5 import XCTest 6 7 class TalerUITests: XCTestCase { 8 9 override func setUpWithError() throws { 10 // Put setup code here. This method is called before the invocation of each test method in the class. 11 12 // In UI tests it is usually best to stop immediately when a failure occurs. 13 continueAfterFailure = false 14 15 // 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. 16 } 17 18 override func tearDownWithError() throws { 19 // Put teardown code here. This method is called after the invocation of each test method in the class. 20 } 21 22 func testExample() throws { 23 // UI tests must launch the application that they test. 24 let app = XCUIApplication() 25 app.launch() 26 27 // Use recording to get started writing UI tests. 28 // Use XCTAssert and related functions to verify your tests produce the correct results. 29 } 30 31 func testLaunchPerformance() throws { 32 if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { 33 // This measures how long it takes to launch your application. 34 measure(metrics: [XCTApplicationLaunchMetric()]) { 35 XCUIApplication().launch() 36 } 37 } 38 } 39 }