Chapter 1. Welcome to BDD
Before we start coding tests, we need to understand what behavior-driven development (BDD) is and how it differs from test-driven development (TDD).
We need to understand not only the concept of BDD, but also all the jargon associated with it. For example, what is a feature? Or what is a unit test? So, in this chapter, I will try to clarify some common vocabulary in order to give you a solid understanding of what every technical term means.
In this chapter, you will learn:
- The reason for writing automated tests
- The workflow prescribed by the test-first approach
- What BDD is and how it differs from TDD
- What a unit test really is
- The different phases that compose a test
- What test doubles are and the different kinds of test doubles ...
Get Learning Behavior-driven Development with JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.