AgilityDaily

View Original

Testing in Software Development - TDD/BDD

Test Driven Development - TDD

See this content in the original post

Test driven development or TDD in short is about letting the design of code be driven by the following cycles;

  1. Write a simple test that will fail

  2. write simple code to make the test pass

  3. Refactor to improve the existing functionality

  4. Retest to make sure functionality is still the same

  5. 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.