42
Technology

TDD

TDD (Test Driven Development) is an approach to programming. In TDD, a new test is always written first, which tests a function of the software to be created even before it is implemented. Since the new function is not yet supported, the test naturally fails. It only works when the new function is completely created (red/green).