writing-ios-unit-tests

Installation
SKILL.md

iOS Unit Testing (Swift Testing)

Three core principles ensure reliable unit tests:

  1. Use Swift Testing framework - Modern @Test and #expect syntax for new tests
  2. Keep container alive - Always capture ModelContainer when using SwiftData contexts
  3. Safe unwrapping patterns - Never force unwrap; use guard with explicit failures

Scope

If input arguments provided:

Scope / file pattern: $ARGUMENTS

else:

Installs
3
Repository
gannonh/skills
GitHub Stars
2
First Seen
May 9, 2026
writing-ios-unit-tests — gannonh/skills