Covers the modern Swift Testing framework that ships with Xcode 16 and Swift 6. You'll reach for this when migrating from XCTest or writing new unit tests with @Test macros, #expect assertions, and parameterized tests. The skill is opinionated about execution model details that trip people up, like parallel test execution by default and when to actually use .serialized. It includes practical patterns for async testing with confirmation counts, withKnownIssue for flaky tests, and a solid common mistakes section that calls out things like using sleep instead of confirmation. The review checklist alone makes it worth having around when you're setting up a new test suite.

skills.sh installs
4.5K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill swift-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Swift Testing

Swift Testing is the modern testing framework for Swift (Xcode 16+, Swift 6+). Prefer it for new unit tests. Keep XCTest where migration is still in progress, and use XCTest for UI automation, performance APIs, Objective-C exception tests, and common snapshot-test tooling.

Contents


Basic Tests

import Testing

@Test("User can update their display name")
func updateDisplayName() {
    var user = User(name: "Alice")
    user.name = "Bob"
    #expect(user.name == "Bob")
}

@Test Traits

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Frontend Development, Backend & APIs, Testing & QA, Git & Pull Requests, Documentation, Debugging, Mobile Development
First seen
Apr 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1anthropics avatardesign-systemanthropics/knowledge-work-pluginsAudit, document, or extend your design system. Use when checking for naming inconsistencies or hardcoded values across components, writing documentation for a c4.5Kskills.sh installs
2grafana avatarfleet-managementgrafana/skillsManage a fleet of Grafana Alloy collectors with Fleet Management — author Alloy pipelines once, target them via attribute matchers (`env="production"`, regex `r4.5Kskills.sh installs
3dpearson2699 avatarios-localizationdpearson2699/swift-ios-skillsImplement, review, or improve localization and internationalization in iOS/macOS apps — String Catalogs (.xcstrings), generated localizable symbols, stable key 4.5Kskills.sh installs
4grafana avatarplugin-bundle-sizegrafana/skillsOptimise Grafana app plugin bundle size using React.lazy, Suspense, and webpack code splitting. Use when the user asks to reduce plugin bundle size, optimise mo4.5Kskills.sh installs
5agricidaniel avatarads-creativeagricidaniel/claude-adsAudit paid-ad copy, images, video, hooks, concepts, format coverage, platform-native fit, message match, creative fatigue, accessibility, and policy across supp4.4Kskills.sh installs
6anthropics avatarsession-reportanthropics/claude-plugins-officialGenerate an explorable HTML report of Claude Code session usage (tokens, cache, subagents, skills, expensive prompts) from ~/.claude/projects transcripts.4.3Kskills.sh installs