skills/pproenca/dot-skills/ios-testing-best-practices

ios-testing-best-practices

SKILL.md

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.

When to Apply

Reference these guidelines when:

  • Writing new unit tests or UI tests for iOS apps
  • Designing testable architecture with dependency injection
  • Testing async/await, actors, and Combine publishers
  • Setting up snapshot testing or visual regression suites
  • Configuring CI pipelines, test plans, and parallel execution

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
Weekly Installs
1
GitHub Stars
71
First Seen
Feb 11, 2026
Installed on
amp1
opencode1
kimi-cli1
codex1
github-copilot1
claude-code1