什么是 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