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
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
More quality code
No comments:
Post a Comment