Behavior-driven development

Behavior-driven development (BDD) is a process that broadens the TDD technique and mixes it with other design ideas and business analysis provided to the developers in order to improve the software development.

In BDD, we test the scenarios and the class's behavior in order to meet the scenarios that can be composed by many classes.

It is very useful to use a DSL in order to have a common language to be used by the customer, project owner, business analyst, or developers. The goal is to have a ubiquitous language as we saw in Chapter 3, Application Design, in the domain-driven design section.

What is BDD?

As we said before, BDD is an agile technique based on TDD and ATDD, promoting the collaboration between the entire ...

Get PHP Microservices 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.