37
BDD by example

BDD by example

Embed Size (px)

Citation preview

BDDby example

IT'S ABOUTLANGUAGE MONEY

–Eric Evans, Domain-Driven Design

“A project faces serious problems when its language is fractured. Domain experts use their jargon while

technical team members have their own.”

Incorrect translations are the primary cause of features that damage business instead of helping them.

COST OF TRANSLATION

BDD & DDD

BDD focuses on eliminating translation costs on conversations

BDD uses scenarios

–Eric Evans, Domain-Driven Design

“To cross-check all these decisions, we have to constantly step through scenarios to confirm that we

can solve application problems effectively.”

DDD focuses on eliminating translation costs in the code

DDD uses domain models

–Eric Evans, Domain-Driven Design

“A domain model is not a particular diagram; it is the idea that the diagram is intended to convey. A diagram

can represent and communicate a model, as can carefully written code, as can an English sentence.”

BDD & DDD help you to reduce the cost of translations

UBIQUITOUS LANGUAGE

Helps you to facilitate conversations

Model your core domain in a language both business and developers can understand.

END-TO-END TESTING PROBLEMS

Scenarios can be used to:

• drive the core domain

• drive the user interface

With BDD you can use your scenarios to test your application at multiple leves using the same behavioural examples

DRIVING THE CORE DOMAIN

Embed Ubiquitous language into scenarios

Your scenarios become your domain model

These scenarios can be used to develop the core domain

DEMO

–Konstantin Kudryashov (@everzet)

“Focus on discussing business problems and the architecture will emerge naturally.”

THANKS