Here are some interesting resources about TDD (Test Driven Development) and BDD (Behaviour Driven Development). I made this video list as my personal note to understand the concept:
What are the difference between TDD and BDD?
What is TDD?
Notes from “what is TDD?”:
What is BDD?
TDD vs BDD
Notes from “TDD vs BDD”:
BDD Concept: Context – Event – Outcome
1. Context: Starting state
Given the battery is charged And there is petrol in the tank And neutral gear is engaged And the throttle is 1/4 open
2. Event: What the user does
When I operate the kick-starter
3. Outcome: The expected result.
Then the engine should start