Test Driven Development:
Step1: Add a test based on the specification mention the requirement.
Step2: Run all the test to see if the test is failing.
Step3: Write some code to pass the test.
Step4: Refactor the code
Step5: Repeat the step1 to Step4
Behavior Driven Development:
This is a development framework which is derived from test driven development. It follows the procedure to develop tests and code w.r.t to requirements and in a plain english language, which basically shows the behavior of the system.
Consider the user story. As a customer, i would like to withdraw cash from the ATM so that i don’t have to stand in line in bank.
The code would be develop with classes showing the requirements to check. Each class would do a specific function.
Public Class Accounthascash()
public class CardIsValid()
Acceptance Test Driven Development:
This again stems from Test Driven Development, where customer, developers and testers sit together to understand the requirements and come up with acceptance tests to define the expected behavior of the system. Once acceptance tests are agreed , coding is started.