Skip to content

Instantly share code, notes, and snippets.

View bennokress's full-sized avatar
👨‍💻
while !isSuccessful { tryAgain() }

Benno Kress bennokress

👨‍💻
while !isSuccessful { tryAgain() }
View GitHub Profile
@steipete
steipete / swift-testing-playbook.md
Last active July 10, 2025 15:07
The Ultimate Swift Testing Playbook (feed it your agents for better tests!)

The Ultimate Swift Testing Playbook (2024 WWDC Edition, expanded with Apple docs from June 2025)

Updated with info from https://developer.apple.com/documentation/testing fetched via Firecrawl on June 7, 2025.

See also my blog: See also my blog post: https://steipete.me/posts/2025/migrating-700-tests-to-swift-testing

A hands-on, comprehensive guide for migrating from XCTest to Swift Testing and mastering the new framework. This playbook integrates the latest patterns and best practices from WWDC 2024 and official Apple documentation to make your tests more powerful, expressive, and maintainable.


1. Migration & Tooling Baseline