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

  1. Use Swift Testing (import Testing) for all new tests — no XCTest unless the file already uses it.
  2. Mock repositories must be actor-based and conform to the same protocol as the real implementation.
  3. View models under test must be accessed on @MainActor.
  4. Never use @unchecked Sendable — prefer actor, @MainActor, or value types.
  5. Test data factories use make{Entity}() helpers with overridable defaults.
  6. 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
Installs
3
GitHub Stars
2
First Seen
Apr 6, 2026