Tuesday, August 13, 2019

What is TDD, BDD


Learning from guru99

TDD, test driven development, test first development, running test before development

Suitable for "detailed specification"

Two types
  • TDD test driven development, normally means Developer TDD
  • BDD Behavior driven development, also called ATDD acceptance test driven development

BDD vs TDD
Test Driven Development (TDD): Learn with Example


From the above diagram, we can see that 
When the team receives a new function requirement
1. BDD testers
testers design acceptance test cases according to requirement. Only If the test failed, developers would write new code.
2. TDD developer
developers need to write new code to fulfill the new requirement
design automated unit test first, then run the test and if the test failed, do refactoring

add test->run test->fail then refactoring
The primary goal of TDD is to make the code clearer, simple and bug-free.

More quality code



No comments:

Post a Comment

API interview questions

  https://www.katalon.com/resources-center/blog/web-api-testing-interview-questions/ Top 50+ Web API Testing Interview Questions [Ultimate l...