All in Programming

Another Real World BDD Example (#2)

This is my second real world BDD example that we’ve written in the past here at Clearly Agile. I’ve been given permission to share this piece of code from the client.

My previous example you can view here, which is around languages.
In this example, we have a scenario where a user can create something called a “Project” and it has to have a correct “Open Date”. Open Date is when the Project is complete and it’s calculated off a collection of Tasks.

REAL WORLD EXAMPLE OF BDD #1 - BEHAVIOR DRIVEN DEVELOPMENT. AGILE ENGINEERING PRACTICES.

If you're not familiar with BDD, Behavior Driven Development, it's a way of writing requirements that can be automatically turned into code for agile developers to automated testing of that feature. Read more about it here. This post is about specific examples.

However, I gotten tired of seeing the same examples everywhere. The "As a math idiot..." ones and lack of real world uses. I thought I would share some of the real world examples of Behavior Driven Development patterns, or BDD. I've scrubbed the examples from any client information.