Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 1 | // |
| 2 | // RingUITests.swift |
| 3 | // RingUITests |
| 4 | // |
| 5 | // Created by Edric on 16-06-23. |
| 6 | // Copyright © 2016 Savoir-faire Linux. All rights reserved. |
| 7 | // |
| 8 | |
| 9 | import XCTest |
| 10 | |
| 11 | class RingUITests: XCTestCase { |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 12 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 13 | override func setUp() { |
| 14 | super.setUp() |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 15 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 17 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. |
| 19 | continueAfterFailure = false |
| 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. |
| 21 | XCUIApplication().launch() |
| 22 | |
| 23 | // 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. |
| 24 | } |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 25 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 26 | override func tearDown() { |
| 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. |
| 28 | super.tearDown() |
| 29 | } |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 30 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 31 | func testExample() { |
| 32 | // Use recording to get started writing UI tests. |
| 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. |
| 34 | } |
Thibault Wittemberg | 14b092a | 2017-07-04 18:13:26 -0400 | [diff] [blame] | 35 | |
Guillaume Roguez | d0a1faf | 2016-06-29 15:55:37 -0400 | [diff] [blame] | 36 | } |