Learn how to write a sweet set of (test) suites using Swift Testing’s baked-in features. Discover how to take the building blocks further and use them to help expand tests to cover more scenarios, organize your tests across different suites, and optimize your tests to run in parallel.
Discuss this video on the Apple Developer Forums:
https://developer.apple.com/forums/topics/developer-tools-and-services?cid=yt-w-0011
Explore related documentation, sample code, and more:
Running tests and interpreting results: https://developer.apple.com/documentation/Xcode/running-tests-and-interpreting-results
Adding tests to your Xcode project: https://developer.apple.com/documentation/Xcode/adding-tests-to-your-xcode-project
Swift Testing: https://developer.apple.com/documentation/Testing
Improving code assessment by organizing tests into test plans: https://developer.apple.com/documentation/Xcode/organizing-tests-to-improve-feedback
Swift Testing vision document: https://github.com/apple/swift-testing/blob/main/Documentation/Vision.md
Swift Testing GitHub repository: https://github.com/apple/swift-testing
Meet Swift Testing: https://developer.apple.com/videos/play/wwdc2024/10179
Meet async/await in Swift: https://developer.apple.com/videos/play/wwdc2021/10132
00:00 - Introduction
00:36 - Why we write tests
00:51 - Challenges in testing
01:21 - Writing expressive code
01:35 - Expectations
03:58 - Required expectations
04:29 - Tests with known issues
05:54 - Custom test descriptions
07:23 - Parameterized testing
12:47 - Organizing tests
12:58 - Test suites
13:33 - The tag trait
20:38 - Xcode Cloud support
21:09 - Testing in parallel
21:36 - Parallel testing basics
24:26 - Asynchronous conditions
26:32 - Wrap up
More Apple Developer resources:
Video sessions: https://apple.co/VideoSessions
Documentation: https://apple.co/DeveloperDocs
Forums: https://apple.co/DeveloperForums
App: https://apple.co/DeveloperApp