Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created August 9, 2020 10:54
Show Gist options
  • Select an option

  • Save cipolleschi/a2ede9887f5e6eb331ff456298cc9c72 to your computer and use it in GitHub Desktop.

Select an option

Save cipolleschi/a2ede9887f5e6eb331ff456298cc9c72 to your computer and use it in GitHub Desktop.
class HomeTests: XCTestCase {
var app: XCUIApplication!
override func setUpWithError() throws {
try super.setUpWithError()
continueAfterFailure = false
self.app = XCUIApplication()
// We are passing the arguments here.
// "-initialScreen" is the name of the argument.
// "home_screen" is the value.
self.app.launchArguments = ["-initialScreen", "home_screen"]
self.app.launch()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment