Behavior-Driven Development with NBehave

What it Behavior-Driven Development (BDD)?

This new development technique is an evolution of the well-known Test-Driven Development. It encapsulates the idea of the Domain Driven Design to use a Ubiquitous language which should break the boundary between Business and Technology. That way, BDD makes  sure that the business, developers, testers, analysts and managers use the same words with equal meaning

The BDD process looks like this:

A business user works with a business analyst to identify a business requirement. This is expressed as a story using the following template:

  • As a Role
  • I request a Feature
  • To gain a Benefit

The speaker, who holds the Role, is the person who will gain the Benefit from the requested Feature. Dan North has written a great article about stories. I advice you to read it if you feel that it’s not clear enough. Continue Reading…