Software Development
Test-Driven Development
Guides building a feature or fixing a bug test-first with the red-green-refactor cycle: agree a list of behaviours, write one failing test, make it pass with the least code, tidy up while green, repeat. Covers reproducing bugs with a failing test, pinning down untested legacy code before changing it, and choosing what to replace with test doubles. Use when the user says "use TDD", "write the test first", "red-green-refactor", "test-drive this function", "add a regression test before fixing", or asks how to add tests while building.
- Publisher / source
- TerminalSkills Library
- Upstream record
- TerminalSkills/skills
- Version
- Version 4
- Published
- Publication review
- Approved for publication
- Content fingerprint
9743ebe353a96573871b8040c454badb55a955ee51f097ec22b3561f25a28a42