·swift-testing
</>

swift-testing

bocato/swift-testing-agent-skill

有關 Swift 測試最佳實踐、模式和實施的專家指導。當開發人員提及以下內容時使用:(1) Swift 測試、@Test、#expect、#require 或 @Suite,(2)“使用 Swift 測試”或“現代測試模式”,(3) 測試替身、模擬、存根、間諜或固定裝置,(4) 單元測試、集成測試或快照測試,(5) 從 XCTest 遷移到 Swift 測試,(6) TDD、Arrange-Act-Assert 或第一。第一。原則,(7)參數化測試或測試組織。

27安裝·1熱度·@bocato

安裝

$npx skills add https://github.com/bocato/swift-testing-agent-skill --skill swift-testing

SKILL.md

This skill provides expert guidance on Swift Testing, covering the modern Swift Testing framework, test doubles (mocks, stubs, spies), fixtures, integration testing, snapshot testing, and migration from XCTest. Use this skill to help developers write reliable, maintainable tests following F.I.R.S.T. principles and Arrange-Act-Assert patterns.

When a developer needs testing guidance, follow this decision tree:

| Fast | Tests execute in milliseconds | Mock expensive operations | | Isolated | Tests don't depend on each other | Fresh instance per test | | Repeatable | Same result every time | Mock dates, network, external deps | | Self-Validating | Auto-report pass/fail | Use #expect, never rely on print() |

有關 Swift 測試最佳實踐、模式和實施的專家指導。當開發人員提及以下內容時使用:(1) Swift 測試、@Test、#expect、#require 或 @Suite,(2)“使用 Swift 測試”或“現代測試模式”,(3) 測試替身、模擬、存根、間諜或固定裝置,(4) 單元測試、集成測試或快照測試,(5) 從 XCTest 遷移到 Swift 測試,(6) TDD、Arrange-Act-Assert 或第一。第一。原則,(7)參數化測試或測試組織。 來源:bocato/swift-testing-agent-skill。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/bocato/swift-testing-agent-skill --skill swift-testing
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 swift-testing?

有關 Swift 測試最佳實踐、模式和實施的專家指導。當開發人員提及以下內容時使用:(1) Swift 測試、@Test、#expect、#require 或 @Suite,(2)“使用 Swift 測試”或“現代測試模式”,(3) 測試替身、模擬、存根、間諜或固定裝置,(4) 單元測試、集成測試或快照測試,(5) 從 XCTest 遷移到 Swift 測試,(6) TDD、Arrange-Act-Assert 或第一。第一。原則,(7)參數化測試或測試組織。 來源:bocato/swift-testing-agent-skill。

如何安裝 swift-testing?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/bocato/swift-testing-agent-skill --skill swift-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/bocato/swift-testing-agent-skill

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-01

相關 Skills

暫無