Skip to content

Instantly share code, notes, and snippets.

View HelloCore's full-sized avatar

Core HelloCore

  • Bangkok, Thailand
View GitHub Profile
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if ProcessInfo.processInfo.arguments.contains("HighSpeedAnimation") {
UIApplication.shared.keyWindow?.layer.speed = 100
}
return true
}
func testTabButtonNumberButtonIncreased() {
let app = XCUIApplication()
let numberBtn = app.buttons["numberBtn"]
numberBtn.tap()
XCTAssertEqual(numberBtn.label, "1", "Score on button should increase")
}
func testPlayToGameOverFirstTime() {
let app = XCUIApplication()
let numberBtn = app.buttons["numberBtn"]
import XCTest
class FizzBuzzTDDSwiftUITests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.