swift-testing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSwift Testing Reference
Swift Testing 参考文档
Apple's modern testing framework () for iOS 26+.
import Testing苹果为iOS 26+推出的现代化测试框架()。
import TestingDownloaded 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 |
| 文件 | 内容 |
|---|---|
| testing-overview.md | 完整的Testing框架索引 |
| defining-tests.md | 使用@Test定义测试函数 |
| organizing-tests.md | 使用@Suite组织测试用例 |
| expectations.md | #expect、#require、断言相关内容 |
| parameterized-testing.md | 参数化测试模式 |
| traits.md | 测试特性(标签、条件、时间限制) |
| migrating-from-xctest.md | 从XCTest迁移指南 |
Fetching More Docs
获取更多文档
- Search this skill's local files first.
.md - If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
SKILL.md - If no installed skill has the page, use the relevant documentation path from with the
testing-overview.mdMarkdown mirror. For example,sosumi.aimaps to/documentation/testing/test.https://sosumi.ai/documentation/testing/test
- 首先搜索该skill的本地文件。
.md - 如果此处没有相关主题,请通过名称、描述或前置信息查看已安装的其他Apple skills,然后搜索它们的本地文件。这比从互联网获取新文档更快,且占用的上下文更少。
SKILL.md - 如果没有已安装的skill包含该页面,请使用中的相关文档路径,配合
testing-overview.md的Markdown镜像。例如,sosumi.ai对应/documentation/testing/test。https://sosumi.ai/documentation/testing/test