Skip to content

Commit

Permalink
Fixes unit test and closes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vanhoef authored and Peter Vanhoef committed Jun 25, 2017
1 parent 20f017b commit 679e9f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Calculator/CalculatorUITests/CalculatorUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class CalculatorUITests: XCTestCase {
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
XCUIApplication().launch()
let app = XCUIApplication()
app.launchArguments.append(contentsOf: ["-savedSequence",""])
app.launch()

// 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.
showCalculator()
Expand Down

0 comments on commit 679e9f5

Please sign in to comment.