Skip to content

Instantly share code, notes, and snippets.

@danielmorrisdesign
Created March 4, 2016 10:34
Show Gist options
  • Save danielmorrisdesign/05380c404ec9faf4720b to your computer and use it in GitHub Desktop.
Save danielmorrisdesign/05380c404ec9faf4720b to your computer and use it in GitHub Desktop.
class UITests: XCTestCase {
private var launched = false
let app = XCUIApplication()
override func setUp() {
super.setUp()
continueAfterFailure = false
launchIfNecessary()
}
private func launchIfNecessary() {
if !launched {
launched = true
app.launchEnvironment = [“animations”: “0”]
app.launch()
}
}
func testDetail() { ... }
func testPopover() { ... }
func testActionSheet() { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment