Introducing Swift Testing: a new package for testing your code using Swift. Explore the building blocks of its powerful new API, discover how it can be applied in common testing workflows, and learn how it relates to XCTest and open source Swift. 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 Go further with Swift Testing: https://developer.apple.com/videos/play/wwdc2024/10195 00:00 - Introduction 00:59 - Agenda 01:20 - Building blocks 01:58 - Building blocks: @Test functions 03:07 - Building blocks: Expectations (#expect and #require) 06:02 - Building blocks: Traits 06:49 - Building blocks: @Suite types 08:34 - Building blocks: Designed for Swift 09:14 - Common workflows 09:29 - Common workflows: Tests with conditions 10:56 - Common workflows: Tests with common characteristics 13:13 - Common workflows: Tests with different arguments 17:35 - Swift Testing and XCTest 21:52 - Open source 23:29 - 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