{"id":12,"date":"2019-06-17T09:53:39","date_gmt":"2019-06-17T09:53:39","guid":{"rendered":"https:\/\/www.bddtesting.com\/?page_id=12"},"modified":"2019-06-17T10:18:00","modified_gmt":"2019-06-17T10:18:00","slug":"bdd-vs-tdd-testing","status":"publish","type":"page","link":"https:\/\/www.bddtesting.com\/bdd-vs-tdd-testing\/","title":{"rendered":"BDD vs TDD testing"},"content":{"rendered":"\n

When you look at any reference on Behavior Driven Development, you will find the usage of phrases such as \u201cBDD is derived from TDD\u201d, \u201cBDD and TDD\u201d. To know how BDD came into existence, why it is said to be derived from TDD and what is BDD and TDD, you have to have an understanding of TDD.<\/p>\n\n\n\n

Why Testing?<\/h2>\n\n\n\n

To start, let us get into the fundamentals of testing. The purpose of testing is to ensure that the system that is built is working as expected. Consider the following example.<\/p>\n\n\n\n

\"Testing\"\/<\/figure>\n\n\n\n

Hence, by experience we have learnt that uncovering a defect as and when it is introduced and fixing it immediately would be cost effective. Therefore, there is a necessity of writing test cases at every stage of development and testing. This is what our traditional testing practices have taught us, which is often termed as Test-early.<\/p>\n\n\n\n

\"Exploratory<\/figure>\n\n\n\n

This testing approach is termed as the Test-Last approach as testing is done after the completion of a stage.<\/p>\n\n\n\n

Challenges with Test-Last Approach<\/h2>\n\n\n\n

The Test-Last approach was followed for quite some time in the software development projects. However, in reality, with this approach, as testing has to wait till the particular stage is completed, often it is overlooked because of \u2212<\/p>\n\n\n\n