Agent Skills
› Prisma-Labs-Dev/apple-skills
› swift-testing
swift-testing
GitHub提供 Swift Testing 框架(iOS 26+)的参考文档,涵盖测试定义、组织、断言及从 XCTest 迁移指南。用于解答 Swift 单元测试相关问题。
Trigger Scenarios
Swift 单元测试编写
XCTest 迁移至 Swift Testing
Swift Testing 框架 API 查询
Install
npx skills add Prisma-Labs-Dev/apple-skills --skill swift-testing -g -y
SKILL.md
Frontmatter
{
"name": "swift-testing",
"agent": "Explore",
"context": "fork",
"description": "API reference: Swift Testing framework. @Test, @Suite, #expect, #require, traits, parameterized tests, migrating from XCTest.",
"user-invocable": true
}
Swift 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.
Version History
- a76633b Current 2026-07-25 07:01


