Skip to main content

BlinkUITests/BlinkUITests.swift

1//
2// BlinkUITests.swift
3// BlinkUITests
4//
5// Created by Alex Chan on 08/06/2023.
6//
8import XCTest
10final class BlinkUITests: XCTestCase {
12 override func setUpWithError() throws {
13 // Put setup code here. This method is called before the invocation of each test method in the class.
15 // In UI tests it is usually best to stop immediately when a failure occurs.
16 continueAfterFailure = false
18 // 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.
19 }
21 override func tearDownWithError() throws {
22 // Put teardown code here. This method is called after the invocation of each test method in the class.
23 }
25 func testExample() throws {
26 // UI tests must launch the application that they test.
27 let app = XCUIApplication()
28 app.launch()
30 // Use XCTAssert and related functions to verify your tests produce the correct results.
31 }
33 func testLaunchPerformance() throws {
34 if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
35 // This measures how long it takes to launch your application.
36 measure(metrics: [XCTApplicationLaunchMetric()]) {
37 XCUIApplication().launch()
38 }
39 }
40 }