// >
| name | ios-testing-skill |
| description | Skill describing modern iOS testing patterns: Swift Testing vs XCTest, XCUITest best practices, and OS 2.2 expectations for coverage and flakiness. |
This skill centralizes iOS testing guidance so that testing agents and gates can stay lean while following consistent patterns.
It is used by:
ios-testing-specialistios-ui-testing-specialistios-verificationios-architect / ios-builder when planning or implementing tests.Swift Testing vs XCTest
@Test and #expect/#require with clear naming and tagging.Unit vs Integration vs UI
Testing SwiftData Models
isStoredInMemoryOnly: true for testsTesting SwiftUI Atoms
AtomTestContext for isolated atom testing.override() for dependency injectiongraphDescription()Agents using this skill MAY consult:
os2-ios-testing
/websites/developer_apple_swiftdata (via Context7)
/ra1028/swiftui-atom-properties (via Context7)
When designing a test strategy:
When implementing tests:
When testing data persistence (SwiftData):
When testing state management (Atoms):
When acting as a gate (verification/quality):
This skill ensures iOS agents talk about testing in a consistent way and know when to consult context7 for deeper patterns and examples.