bdd fundamentals... agenda •introduction to bdd •examples workshop •cucumber workshop

22
BDD Fundamentals

Upload: others

Post on 14-Apr-2020

60 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

BDD Fundamentals

Page 2: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Aslak Hellesøy

• 2003: Agile / Behaviour Driven Development

• 2008: Created

• 2011: Wrote a book

• 2014: Co-founded

• Email: [email protected]

• Twitter: @aslak_hellesoy

www.eurostarconferences.com

Page 3: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Agenda

• Introduction to BDD

• Examples workshop

• Cucumber workshop

Page 4: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Why does this happen?

Page 5: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

Whatdid I just tell you?

To sharetrain with

Pablo

https://www.flickr.com/photos/sblackley/9799052565

Page 6: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 7: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 8: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 9: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

There are known knowns; there are things we know that we know.

There are known unknowns; that is to say there are things that, we now know we don't know.

But there are also unknown unknowns – there are things we do not know we don't know.

Page 10: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 11: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 12: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

BDD is negative spaceFocus on misunderstandingto discover understanding

Page 13: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

BDD uses examplesin conversations to illustrate behaviour

Page 14: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Give me an example!

Page 15: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Page 16: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Let’s do this together

Page 17: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Shouty!

Page 18: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Question

Question

Page 19: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Given - When - Then

Page 20: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Something that happened in the past

An event

An expected outcome

Given Fred has bought a microwave for £100

When Fred returns the microwave

Then Fred should be refunded £100

Page 21: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Formalise it!

Run it!

Page 22: BDD Fundamentals... Agenda •Introduction to BDD •Examples workshop •Cucumber workshop

www.eurostarconferences.com

Who does what?