Behavior Driven Development - Presentation Transcript
Behavior Driven Development Getting Started With
Lee Brandt Sexy Gorilla 10 Yrs Programming Early .NET Betas TDD / BDD Enthusiast Movie Quote Guru Examinetics Solutions Architect Currently: [email_address] www.codebucket.org Twitter: leebrandt DISCLAIMER: My opinions are mine, not my employer’s , not Geeks with Blogs’. Blame me.
Don’t we already have TEST Driven Development?
TDD’s Intent
What actually happened.
Test Fixture Class
TDD Comes Up Short not the intent the language misleads not about testing
BDD is NOT something new
BDD is a shift in TDD language that helps guide you to do TDD the way it was meant to be done.
TDD DDD BDD
UBIQUITOUS LANGUAGE
Scrum, Kanban & XP OH MY!
User Stories
Role – Goal – Motivation
As a [Role] I need to [Goal] so that [Motivation]
As an Account Holder I need to be able to withdraw funds so that I have cash.
Scenarios
Context – Action – Observation
Given [Context] When [Action] Then [Observation]
Given the account is in credit for the amount requested when a withdrawal is made the system should debit my account, the system should dispense the cash, and the system should return the card.
LANGUAGE
All about expressing the user’s needs and
what it means to the user to have those needs filled.
Test File Test Fixture Fixture Setup / Test Setup Test Specification Concern Context Observation
DEMO
User Interface Integration Web Interface User Interface Layer Presentation Layer Domain Objects Services Persistence Windows Interface Data Access Layer Service Layer
1 comments
Comments 1 - 1 of 1 previous next Post a comment