swift-testing

Installation
SKILL.md

Swift Testing

Overview

Swift Testing is Apple's modern testing framework introduced at WWDC 2024. It uses Swift macros (@Test, #expect) instead of naming conventions, runs tests in parallel by default, and integrates seamlessly with Swift concurrency.

Core principle: Tests should be fast, reliable, and expressive. The fastest tests run without launching your app or simulator.

The Speed Hierarchy

Tests run at dramatically different speeds depending on how they're configured:

Configuration Typical Time Use Case
swift test (Package) ~0.1s Pure logic, models, algorithms
Host Application: None ~3s Framework code, no UI dependencies
Bypass app launch ~6s App target but skip initialization
Full app launch 20-60s UI tests, integration tests
Related skills

More from derklinke/codex-config

Installs
2
GitHub Stars
8
First Seen
Jan 27, 2026