ios-testing-best-practices

📁 pproenca/dot-skills 📅 2 days ago
1
总安装量
1
周安装量
#53181
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill ios-testing-best-practices

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
claude-code 1

Skill 文档

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