writing tests
✓編寫有效、可維護的測試的原則。涵蓋命名約定、斷言最佳實踐和全面的邊緣案例清單。基於 Gojko Adzic 的 BugMagnet。
SKILL.md
How to write tests that catch bugs, document behavior, and remain maintainable.
🚨 Test names describe outcomes, not actions. "returns empty array when input is null" not "test null input". The name IS the specification.
🚨 Assertions must match test titles. If the test claims to verify "different IDs", assert on the actual ID values—not just count or existence.
編寫有效、可維護的測試的原則。涵蓋命名約定、斷言最佳實踐和全面的邊緣案例清單。基於 Gojko Adzic 的 BugMagnet。 來源:ntcoding/claude-skillz。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/ntcoding/claude-skillz --skill writing tests- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 writing tests?
編寫有效、可維護的測試的原則。涵蓋命名約定、斷言最佳實踐和全面的邊緣案例清單。基於 Gojko Adzic 的 BugMagnet。 來源:ntcoding/claude-skillz。
如何安裝 writing tests?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ntcoding/claude-skillz --skill writing tests 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/ntcoding/claude-skillz
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01