Test Approach and Comparisons between TDD and BDD
Harpreet S.
Technical Lead at HCLTech specializing in Automation Architecture in Health Care & Automotive Diagnostic Devices
Test Approach for ATDD
ATDD usually involves establishing the criteria first, most often from a user perspective, and, acceptance tests are developed and run to see the results of failure with the right code based on examples.
Customer need technical help. Developer and Tester to provide technical support. Pair wise authoring. Developers need business knowledge. Customer can provide business rules. Pair wise implementation
Test Approach for TDD
TDD is repetition of a very short development cycle. Code is written specifically to pass a given test case. When the written code successfully passes the test (‘green’), the passing code is refactored. Known as ‘red-green-refactor,’ this process is the mantra of TDD.
Test Approach for BDD
ATDD combines the general techniques and principles of TDD with ideas from domain-driven design ATDD is practice of writing tests first, but focuses on tests which describe behavior, rather than tests which test a unit of implementation.