What is Test-driven Development? A Complete Guide To TDD
Development and testing go hand in hand: one can not be complete without the other. Traditionally, the emphasis has always been placed on developing. Developers code first, then test, fix any bugs they find, commit code, and the cycle repeats. Test-driven development (TDD) takes a slightly contrarian approach: test first, then write code later. These test results guide development activities. Although it may sound counterintuitive, TDD is actually a better approach to development and testing.