swift-testing-baseline

Installation
SKILL.md

Swift Testing Baseline

When to invoke

  • Starting a new project and choosing a test framework.
  • Writing the first test target / first @Test case.
  • Introducing CloudKit / GameKit / any network service and deciding whether to run integration tests on CI.
  • Setting up SwiftUI snapshot testing.
  • User asks "XCTest or swift-testing", "how do I do snapshots", "should CI connect to iCloud".

Default decisions

Framework

  • swift-testing (Apple's official framework) for unit / integration tests; do not use XCTest at all.
  • With no legacy code, the switch is zero-cost; swift-testing pairs well with Swift 6 / async.
  • Name files by the type under test (<Type>Tests.swift) and group related cases with @Suite.

Snapshot testing

Installs
11
GitHub Stars
18
First Seen
Jul 6, 2026