Test Driven Development (TDD)
Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle. In this article we will learn, what is Test Driven Development, How to write TDD basic code, pros and cons of it.

Test Driven Development
What is Test Driven Development (TDD)?
Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the software is improved to pass the new tests, only.
In Test Driven Development (TDD) test codes are written, before writing the bare minimum source code required for the test to be fulfilled. The code will then be refactored, as often as necessary, in order to pass the test, with the process being repeated for each piece of functionality. Below figure shows how it works.
To summarise, write minimal code and refactor continuously in order to satisfy the test.
2,321 total views, 1 views today