+ All Categories
Home > Software > Introduction to BDD

Introduction to BDD

Date post: 25-Jan-2017
Category:
Upload: gil-zilberfeld
View: 302 times
Download: 1 times
Share this document with a friend
29
@gil_zilberfel Introduction to BDD
Transcript

@gil_zilberfeld

Introduction to BDD

@gil_zilberfeld

Hello!

I AM GIL ZILBERFELD

www.gilzilberfeld.comwww.everydayunittesting.com

@gil_zilberfeld

@gil_zilberfeld

A history lesson…

@gil_zilberfeld

eXtreme Programming

◉User stories◉System metaphor (and DDD’s ubiquitous

language)◉Customer is always available◉Unit-test first◉Acceptance tests

@gil_zilberfeld

What are the benefits of test-first?

@gil_zilberfeld

@gil_zilberfeld

The Three AmigosGeorge Dinwiddie

DeveloperTester

Business analyst

@gil_zilberfeld

Behavior driven developmentDan North

AKA:Acceptance test DD

Specification by exampleExample DD

@gil_zilberfeld

It’s all about the conversations!

@gil_zilberfeld

@gil_zilberfeld

Where do stories come from?

@gil_zilberfeld

Give me an example!

@gil_zilberfeld

Ambiguous requirements

The Movie

@gil_zilberfeld

BDD/ATDD frameworks

FitFitnesseJBehave

CucumberSpecFlow

@gil_zilberfeld

The Gherkin language

@gil_zilberfeld

Steps

Scenarios

Narratives/Features

@gil_zilberfeld

Scenario

Given I’m driving a Formula 1 carWhen I start accelerating from 0km/hThen I get to 100km/h in 2 seconds

@gil_zilberfeld

The Story (or Narrative)

In order to drive fasterAs a driverI want a better engine

@gil_zilberfeld

What is the acceptance criteria?

@gil_zilberfeld

How’s this story?

In order to approve a transactionAs a userI want to press the “Approve” button

@gil_zilberfeld

And this one?

In order to transfer moneyAs a userI want to login to the app

@gil_zilberfeld

BDD/ATDD frameworks

FitFitnesse

ConcordionJBehave

CucumberSpecFlow

@gil_zilberfeld

Demo

@gil_zilberfeld

Good user stories

IndependentNegotiableValuableEstimableSmallTestableBill Wake, 2003

@gil_zilberfeld

Good user stories

IndependentNegotiableValuableEstimableSmallTestable

@gil_zilberfeld

Ron Jeffries said

As an author of the Agile Manifesto

I want  that stupid story format to go away

So that people can get to the essence of

user stories

@gil_zilberfeld

Better user stories

◉ Drop the template

◉ Tell the story in a sentence

◉ Anchor it

◉ Unveil the motive

@gil_zilberfeld

Better user stories

◉ Imagine the demo

◉ Give context

◉ The general rules

◉ Exception to the rules

@gil_zilberfeld

Thanks!

ANY QUESTIONS?

You can find me at:@gil_zilberfeld

http://www.GilZilberfeld.comhttp://www.EverydayUnitTesting.com


Recommended