tdd
Test-driven development workflow - write the failing test first, make it pass with the smallest change, then refactor - with rules for choosing the test level, naming tests and not mocking the unit under test. Use when adding a feature or fixing a bug in a codebase that has tests, or when the user mentions TDD, "tests first", or asks how to test something. For the commit afterwards see commit, and for a review see review-changes.
Pinned to revision 9d5c516ba3e0, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.