Testing in Software Development - TDD/BDD
Test Driven Development - TDD
Test driven development or TDD in short is about letting the design of code be driven by the following cycles;
Write a simple test that will fail
write simple code to make the test pass
Refactor to improve the existing functionality
Retest to make sure functionality is still the same
Start from the beginning with point 1
Behavior Driven Development
While test driven development is a process of using examples to guide the development of each function of the code, and creating a loop. Behavior driven development is kinda similar and complement the the TDD. While TDD is at the code BDD is at the features. User uses feature to express their needs rather coding language BDD uses natural language.
PS: I will like to know from testers and developers how there are using these practices. I am always looking for opportunities to improve my self.