什麼是 tdd?
使用紅綠重構循環的測試驅動開發。當使用者想要使用 TDD 建置功能或修復錯誤、提到「紅綠重構」、想要整合測試或要求測試優先開發時使用。 來源:brianlovin/claude-config。
使用紅綠重構循環的測試驅動開發。當使用者想要使用 TDD 建置功能或修復錯誤、提到「紅綠重構」、想要整合測試或要求測試優先開發時使用。
透過命令列快速安裝 tdd AI 技能到你的開發環境
來源:brianlovin/claude-config。
Core principle: Tests should verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't.
Good tests are integration-style: they exercise real code paths through public APIs. They describe what the system does, not how it does it. A good test reads like a specification - "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.
Bad tests are coupled to implementation. They mock internal collaborators, test private methods, or verify through external means (like querying a database directly instead of using the interface). The warning sign: your test breaks when you refactor, but behavior hasn't changed. If you rename an internal function and tests fail, those tests were testing implementation, not behavior.
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/brianlovin/claude-config --skill tdd使用紅綠重構循環的測試驅動開發。當使用者想要使用 TDD 建置功能或修復錯誤、提到「紅綠重構」、想要整合測試或要求測試優先開發時使用。 來源:brianlovin/claude-config。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/brianlovin/claude-config --skill tdd 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/brianlovin/claude-config