Swift Testing

Prisma-Labs-Dev/apple-skills/skills/swift-testing

作者 Prisma-Labs-Dev498626005e65783ebe8570a103b2335cf397768c无许可证收录于 2026年10月9日更新于 2026年10月9日

API reference: Swift Testing framework. @Test, @Suite, #expect, #require, traits, parameterized tests, migrating from XCTest.

AI 生成的概览

Apple Swift Testing 框架参考,涵盖 @Test、@Suite、#expect、traits 及从 XCTest 迁移。

功能
该技能提供 Apple Swift Testing 框架(适用于 iOS 26+)的本地参考。它索引七份 Markdown 文档,涵盖测试定义、套件组织、期望、参数化测试、traits 以及从 XCTest 迁移。它还说明如何查找更多文档,先查本地文件,再通过文档镜像获取。
适用场景
适用于使用 Testing 框架编写或组织 Swift 测试,或从 XCTest 迁移现有测试时。也适合查阅 @Test、@Suite、#expect、#require 和 traits 等具体 API。
运行要求
无脚本;仅包含说明和本地 Markdown 参考文件。仅在需要从所述镜像获取额外文档时需要网络访问。

Swift Testing Reference

Apple's modern testing framework (import Testing) for iOS 26+.

Downloaded Reference Files

FileContent
testing-overview.md [blocked]Full Testing framework index
defining-tests.md [blocked]Defining test functions with @Test
organizing-tests.md [blocked]Organizing tests with @Suite
expectations.md [blocked]#expect, #require, confirmations
parameterized-testing.md [blocked]Parameterized test patterns
traits.md [blocked]Test traits (tags, conditions, time limits)
migrating-from-xctest.md [blocked]Migration guide from 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.

来源与署名

来源:Prisma-Labs-Dev/apple-skills位于skills/swift-testing提交4986260

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架