tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ios_sampleUITests.swift (1528B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 import XCTest
      6 
      7 class ios_sampleUITests: 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 }