About swift-testing
swift-testing is a reference skill for Apple's modern Testing framework, used through `import Testing`. It provides local guides to defining, organizing, and parameterizing tests, managing expectations and traits, and migrating from XCTest.
Key features
- 01Test functions with @Test
- 02Organizing tests with @Suite
- 03Expectations and confirmations
- 04Parameterized testing patterns
- 05Test traits and conditions
- 06XCTest migration guide
Use cases
- 01Looking up @Test and @Suite usage
- 02Adding parameterized test cases
- 03Applying test conditions or time limits
- 04Planning a move from XCTest
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ prisma-labs-dev/ apple-skills --skill swift-testingAfter installing, type/swift-testingin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
defining-tests.mdexpectations.mdmigrating-from-xctest.mdorganizing-tests.mdparameterized-testing.mdtesting-overview.mdtraits.mdDetails
From the project READMESwift Testing Reference
Apple's modern testing framework (import Testing) for iOS 26+.
Downloaded Reference Files
| File | Content |
|---|---|
| testing-overview.md | Full Testing framework index |
| defining-tests.md | Defining test functions with @Test |
| organizing-tests.md | Organizing tests with @Suite |
| expectations.md | #expect, #require, confirmations |
| parameterized-testing.md | Parameterized test patterns |
| traits.md | Test traits (tags, conditions, time limits) |
| migrating-from-xctest.md | Migration guide from XCTest |
Fetching More Docs
- Search this skill's local
.mdfiles first. - If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or
SKILL.mdfrontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet. - If no installed skill has the page, use the relevant documentation path from
testing-overview.mdwith thesosumi.aiMarkdown mirror. For example,/documentation/testing/testmaps tohttps://sosumi.ai/documentation/testing/test.
Comments
Markdown supported