Friday, 19 April 2013

Just Enough Production Functionality

The premise of TDD is to write tests that satisfy that a piece of functionality is working as expected.
Be this a unit of code (unit test) or a higher level feature (acceptance test).

A test should be written to fail. (Red)
Simply enough code should be written to make this test pass (Green)
Code should then be tidied up and optimised (Refactor).

This is inline with the Kent Beck model of Red, Green, Refactor for Test Driven Development.

No comments:

Post a Comment

Headless CMS: Revolutionising Content Management for Modern Web Projects in 2025

Headless CMS has become a cornerstone of modern web development, decoupling content management from presentation for unparalleled flexibilit...