BDD vs TDD
Question
What distinguishes BDD from TDD?
Hint
BDD uses 'Given-When-Then' language.
Explanation
BDD (Behavior-Driven Development) emphasizes describing behavior in natural, readable language (Given-When-Then format) so non-technical stakeholders can understand the specs. TDD (Test-Driven Development) is a broader practice of writing tests before code. BDD is essentially TDD with a focus on behavior specification and shared vocabulary.
Related Resources
Related Lessons
- BDD
Behavior-driven development.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.