Agent Skills
› Prisma-Labs-Dev/apple-skills
› swift-testing
swift-testing
GitHub提供 Apple Swift Testing 框架的 API 参考,涵盖测试定义、组织、断言及 XCTest 迁移指南。用于 iOS 开发中的单元测试编写与调试。
触发场景
编写 Swift 单元测试
使用 @Test 或 #expect 语法
从 XCTest 迁移到 Swift Testing
查找 Swift 测试 API 文档
安装
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.
版本历史
- a76633b 当前 2026-07-25 07:01


