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 從公開儲存庫中收錄這些內容。

檢舉或申請下架