ios-testing
Installation
SKILL.md
iOS Testing
Emit compile-ready Swift Testing code. All mocks are actor-based. All view models are @MainActor.
Load Strategy
Always read references/testing.md.
If the request involves concurrency, Sendable, or actor isolation: also read ios-architect/references/testing-concurrency-di.md.
Execution Contract
- Use Swift Testing (
import Testing) for all new tests — no XCTest unless the file already uses it. - Mock repositories must be
actor-based and conform to the same protocol as the real implementation. - View models under test must be accessed on
@MainActor. - Never use
@unchecked Sendable— preferactor,@MainActor, or value types. - Test data factories use
make{Entity}()helpers with overridable defaults. - Run targeted tests to validate:
swift test --filter <TestSuite>.
Sister Skills
- ios-architect — app/feature scaffolding, Domain/Data/Presentation layers
- ios-persistence — GRDB setup, migrations, ValueObservation
- ios-platform — networking, navigation, Foundation Models
Related skills