Agent Skills
› Prisma-Labs-Dev/apple-skills
› swift-testing
swift-testing
GitHub提供 Swift Testing 框架的 API 参考,涵盖测试定义、组织、断言、参数化及从 XCTest 迁移等内容。用于在 iOS 26+ 开发中编写和调试单元测试。
Trigger Scenarios
需要编写或调试 Swift 单元测试
查询 @Test, @Suite, #expect 等 API 用法
计划从 XCTest 迁移到 Swift Testing
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


