skillfed

ios-testing

This skill equips developers with structured testing methodologies tailored for iOS applications built on modular MVVM-C architecture. Explore practical approaches to unit testing, integration testing, and UI automation while maintaining clean separation of concerns across your codebase. Strengthen your testing foundation to build more reliable and maintainable iOS applications.

ios-testing equips developers with structured testing methodologies tailored for iOS applications built on modular MVVM-C architecture. The skill covers practical approaches to unit testing, integration testing, and UI automation while maintaining clean separation of concerns. You'll learn to design testable iOS apps using dependency injection and protocol-based mocks, explore snapshot testing and UI testing strategies, and set up CI pipelines for iOS projects.

AI-generated summary based on this skill's SKILL.md

182 14 MIT updated by pproenca

Install

pproenca/dot-skills/ios-testing · repository language: Shell

CLI (skillfed)coming soon
git clone https://github.com/pproenca/dot-skills
cp -r dot-skills/skills/.experimental/ios-testing ~/.claude/skills/ios-testing

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

What iOS testing best practices does ios-testing cover?

ios-testing equips developers with structured testing methodologies tailored for iOS applications built on modular MVVM-C architecture. The skill covers practical approaches to unit testing, integration testing, and UI automation while maintaining clean separation of concerns. You'll learn to design testable iOS apps using dependency injection and protocol-based mocks, explore snapshot testing and UI testing strategies, and set up CI pipelines for iOS projects.

How does ios-testing address Swift 6.2 async/await testing?

ios-testing includes comprehensive guidance on testing async/await, actors, and concurrent code in Swift 6.2 applications. The skill teaches you how to properly isolate actor code in tests, handle asynchronous operations reliably, and avoid common pitfalls when testing modern Swift concurrency patterns. This ensures your concurrent code behaves correctly under various conditions.

Can ios-testing help refactor existing tests to best practices?

Yes. ios-testing provides principal-engineer-level guidance for refactoring existing iOS tests to follow best practices. The skill helps you identify and resolve flaky tests, restructure test architecture for maintainability, and align your test suite with MVVM-C patterns and dependency injection principles. This transforms legacy test code into a robust, scalable testing foundation.

What snapshot testing and UI testing strategies are included?

ios-testing covers snapshot testing implementation for visual regression detection and comprehensive UI testing strategies including accessibility identifiers. You'll learn to set up and maintain snapshot tests effectively, design UI tests that are resilient to layout changes, and integrate these testing approaches into your CI pipeline for continuous validation.

How does ios-testing support protocol-based mocks and test doubles?

ios-testing teaches you to design testable iOS apps using protocol-based mocks and dependency injection. The skill explains how to create effective test doubles and fakes that isolate units under test, reduce external dependencies, and enable fast, reliable unit tests. This approach works seamlessly with MVVM-C architecture to keep your codebase modular and testable.

What CI pipeline and test architecture guidance does ios-testing provide?

ios-testing covers iOS CI pipeline configuration and test architecture design to establish a robust continuous integration workflow. You'll learn to structure your test suite for efficiency, configure automated testing in CI environments, and implement strategies for handling flaky tests. This ensures your iOS project maintains high code quality and fast feedback cycles.

SKILL.md

rendered from the published skill — quoted content, verbatim

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:

  • Feature modules import Domain + DesignSystem only (never Data, never sibling features)
  • App target is the convergence point and owns DependencyContainer, concrete coordinators, and Route Shell wiring
  • Domain stays pure Swift and defines models plus repository, *Coordinating, ErrorRouting, and AppError contracts
  • Data owns

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 15 files
skills/.experimental/ios-testing/SKILL.md
skills/.experimental/ios-testing/assets/templates/_template.md
skills/.experimental/ios-testing/metadata.json
skills/.experimental/ios-testing/references/_sections.md
skills/.experimental/ios-testing/references/arch-arrange-act-assert.md
skills/.experimental/ios-testing/references/arch-constructor-injection.md
skills/.experimental/ios-testing/references/arch-protocol-dependencies.md
skills/.experimental/ios-testing/references/arch-single-responsibility-tests.md
skills/.experimental/ios-testing/references/arch-test-target-separation.md
skills/.experimental/ios-testing/references/arch-testable-import.md
skills/.experimental/ios-testing/references/async-actor-testing.md
skills/.experimental/ios-testing/references/async-await-directly.md
skills/.experimental/ios-testing/references/async-confirmation.md
skills/.experimental/ios-testing/references/async-mainactor-isolation.md
skills/.experimental/ios-testing/references/async-task-cancellation.md

Related skills

Tags

swift-concurrency test-doubles dependency-injection visual-regression ci-infrastructure architecture-patterns async-testing ui-automation