]> git.r.bdr.sh - rbdr/map/blame - MapUITests/MapUITests.swift
Update license URL
[rbdr/map] / MapUITests / MapUITests.swift
CommitLineData
1b85f723
RBR
1import XCTest
2
e2c37ac1 3final class MapUITests: XCTestCase {
1b85f723 4
5e8ff485
RBR
5 override func setUpWithError() throws {
6 // Put setup code here. This method is called before the invocation of each test method in the class.
7
8 // In UI tests it is usually best to stop immediately when a failure occurs.
9 continueAfterFailure = false
10
11 // 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.
12 }
13
14 override func tearDownWithError() throws {
15 // Put teardown code here. This method is called after the invocation of each test method in the class.
16 }
17
e2c37ac1 18 @MainActor
5e8ff485
RBR
19 func testExample() throws {
20 // UI tests must launch the application that they test.
21 let app = XCUIApplication()
22 app.launch()
23
5e8ff485
RBR
24 // Use XCTAssert and related functions to verify your tests produce the correct results.
25 }
26
e2c37ac1 27 @MainActor
5e8ff485 28 func testLaunchPerformance() throws {
e2c37ac1 29 if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
5e8ff485
RBR
30 // This measures how long it takes to launch your application.
31 measure(metrics: [XCTApplicationLaunchMetric()]) {
32 XCUIApplication().launch()
33 }
1b85f723 34 }
5e8ff485 35 }
1b85f723 36}