ios-testing

>

alesanabriav7/ios-architect-skill3 installsMITSynced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: ios-testing
description: >
license: MIT
---

# 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

More Mobile skills

← All Mobile skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY