How do you write a UI Test with Swift and XCTest? How do you add tests to Xcode projects?
In this video I'll show you how to get started wtih UI Testing in a SwiftUI and AppKit app on macOS. These same tools will work in your own projects.
Download the code: https://super-easy-apps.ck.page/swiftui
00:00 UI Testing in Xcode 16
03:05 Starter Project
04:01 Add UI Testing Target
06:45 Start UI Testing
09:10 Record UI Interactions
10:23 Clean Up Tests
12:50 Print Out Accessibility
14:35 Add Accessibilty Identifiers
20:35 Extend XCUIElement
25:35 Refactor XCUIElement as Computed Properties
27:55 Xcode 16 New XCTest Additions
37:20 Attempting the Failure Case
45:55 Up Next
Download the code: https://super-easy-apps.ck.page/swiftui
Super Easy Timer: https://itunes.apple.com/us/app/super...
#UITesting #xcode #xctest #xcode16 #macos #appkit #swiftui #swift #ios