swift-testing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Swift Testing Reference

Swift Testing 参考文档

Apple's modern testing framework (
import Testing
) for iOS 26+.
苹果为iOS 26+推出的现代化测试框架(
import Testing
)。

Downloaded Reference Files

已下载的参考文件

FileContent
testing-overview.mdFull Testing framework index
defining-tests.mdDefining test functions with @Test
organizing-tests.mdOrganizing tests with @Suite
expectations.md#expect, #require, confirmations
parameterized-testing.mdParameterized test patterns
traits.mdTest traits (tags, conditions, time limits)
migrating-from-xctest.mdMigration 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

获取更多文档

  1. Search this skill's local
    .md
    files first.
  2. If the topic is not here, check the other installed Apple skills you have available by their names, descriptions, or
    SKILL.md
    frontmatter, then grep their local files. This is faster and uses less context than fetching new docs from the internet.
  3. If no installed skill has the page, use the relevant documentation path from
    testing-overview.md
    with the
    sosumi.ai
    Markdown mirror. For example,
    /documentation/testing/test
    maps to
    https://sosumi.ai/documentation/testing/test
    .
  1. 首先搜索该skill的本地
    .md
    文件。
  2. 如果此处没有相关主题,请通过名称、描述或
    SKILL.md
    前置信息查看已安装的其他Apple skills,然后搜索它们的本地文件。这比从互联网获取新文档更快,且占用的上下文更少。
  3. 如果没有已安装的skill包含该页面,请使用
    testing-overview.md
    中的相关文档路径,配合
    sosumi.ai
    的Markdown镜像。例如,
    /documentation/testing/test
    对应
    https://sosumi.ai/documentation/testing/test