swift-testing
Installation
SKILL.md
Swift Testing
Core testing patterns for Swift using the Swift Testing framework, XCTest, and XCUITest.
When to Activate
- Writing tests for Swift or SwiftUI code
- Setting up a test target in Xcode
- Testing async/actor code
- Writing UI automation tests
- Achieving 80%+ code coverage in Swift projects
- Migrating an existing XCTest suite to the Swift Testing framework (
@Test,#expect) - Debugging flaky tests caused by shared mutable state or fixed
sleepwaits - Adding parameterized test cases to cover multiple input combinations efficiently