Swift Testing Deep Dive: Better Tests with Less Code | Software Testing
Swift Testing is an all-new, all-Swift framework for automated testing, introduced by Apple at WWDC24—and developed with support of the community (yes, it’s open-source). In this video, I explain Swift Testing’s key features, highlight some important changes from XCTest, and list a few cases where Swift Testing doesn’t work. • Check out this repo where I migrated a small demo project from XCTest to Swift Testing: https://github.com/TheSwiftBird/TestBird • And if you’re completely new to software testing (or you need a refresher), here’s a video for you: https://youtu.be/_sWfGZQ83hg Support the Swift Bird by… • …joining as a member: https://www.youtube.com/channel/UC3mDnPzYxvKHaMLANaiDDYQ/join • …becoming a patron: https://url.ykvm.com/patreon • …buying me a coffee: https://url.ykvm.com/bmac Links: • Swift Testing: https://developer.apple.com/xcode/swift-testing/ • Swift Testing on GitHub: https://github.com/swiftlang/swift-testing Chapters: • 0:00 Making a U-turn • 0:46 Why a new framework? • 2:39 Swift macros take the center stage! • 3:50 Checking results & expectations (no more XCTAssertSomething) • 5:30 More test coverage, less code, fewer mistakes. Is it even possible? • 7:13 Your tests will no longer pass “accidentally” • 8:59 Organize your tests with suites (and keep in mind these changes from XCTest) • 10:20 Traits give you a ton of customization options! • 11:42 And tags let you organize tests across different suites • 12:08 There’s bad news, too • 13:27 Swift Testing is open-source 🎉 • 13:48 …and cross-platform! • 14:13 Everything important in less than 60 seconds • 15:07 What do you think? I’m looking forward to your comments! 💬 The Swift Bird, a Yakov Manshin production 🎞️ #SwiftTesting #softwaretesting #softwareengineering
Download
0 formatsNo download links available.