Agent Skills
› Prisma-Labs-Dev/apple-skills
› swift-testing
swift-testing
GitHub提供 Swift Testing 框架的 API 引用,涵盖测试定义、组织、断言及从 XCTest 迁移等内容。用于解答 iOS 26+ 现代测试框架的使用问题,指导开发者编写和调试单元测试代码。
Trigger Scenarios
询问 Swift Testing 框架 API
XCTest 迁移到 Swift Testing
Swift 单元测试编写与调试
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


