Key practice in effective product development culture.
—
- Write a single test first;
- Run the test to ensure it fails;
- Write just enough code to make the test pass;
- Refactor (see Kent Beck’s 4 rules of simple design) ;
- Repeat
This is often summarised as Red Green Refactor.