iOS Lunch and Terminate application while executing


Example

Lunch application for testing

override func setUp() {
    super.setUp()

    let app = XCUIApplication()

    app.launch()
}

Terminating application

func testStacOverFlowApp() {
    
    app.terminate()
}