Ios testing

From pproenca/dot-skills · View interactive version

Ios testing is an AI agent skill from the GitHub repository pproenca/dot-skills. Testing practices for iOS 26 / Swift 6.2 clinic modular MVVM-C applications. Covers unit/UI/snapshot testing, protocol-based mocks, async actor isolation, and dependency-injected test architecture aligned with Domain protocols, App-target composition, and Data-owned I/O boundaries. Use when writing,

How to use this skill

Skill file

iOS Testing Best Practices

Comprehensive testing guide for iOS and Swift applications, written at principal engineer level. Contains 44 rules across 8 categories, prioritized by impact to guide test architecture decisions, test authoring patterns, and CI infrastructure.

Clinic Architecture Contract (iOS 26 / Swift 6.2)

All guidance in this skill assumes the clinic modular MVVM-C architecture:

When to Apply

Reference these guidelines when:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Test Architecture & Testability | CRITICAL | arch- |

| 2 | Unit Testing Fundamentals | CRITICAL | unit- |

| 3 | Test Doubles & Isolation | HIGH | mock- |

| 4 | Async & Concurrency Testing | HIGH | async- |

| 5 | SwiftUI Testing | MEDIUM-HIGH | swiftui- |

| 6 | UI & Acceptance Testing | MEDIUM | ui- |

| 7 | Snapshot & Visual Testing | MEDIUM | snap- |

| 8 | Test Reliability & CI | LOW-MEDIUM | ci- |

Quick Reference

1. Test Architecture & Testability (CRITICAL)

2. Unit Testing Fundamentals (CRITICAL)

3. Test Doubles & Isolation (HIGH)

4. Async & Concurrency Testing (HIGH)

5. SwiftUI Testing (MEDIUM-HIGH)

6. UI & Acceptance Testing (MEDIUM)

7. Snapshot & Visual Testing (MEDIUM)

8. Test Reliability & CI (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.