Agent Skills
› Prisma-Labs-Dev/apple-skills
› swift-testing
swift-testing
GitHub提供 Swift Testing 框架的 API 参考,涵盖测试定义、组织、断言及迁移指南。通过本地文档和备用镜像加速查询,辅助开发者编写和维护 iOS/macOS 测试用例。
Trigger Scenarios
Swift 单元测试开发
XCTest 迁移至 Swift Testing
查找 @Test 或 #expect 用法
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


