bdd all the way down slides - megakemp.com

18
Enrico Campidoglio BDD all the way down @ecampidoglio

Upload: others

Post on 30-Dec-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BDD All the Way Down Slides - megakemp.com

Enrico Campidoglio

BDDall the way down

@ecampidoglio

Page 2: BDD All the Way Down Slides - megakemp.com

How to apply the principles and techniques of Behavior Driven Development

in practice while using .NET

Page 3: BDD All the Way Down Slides - megakemp.com

By implementing the first rule ofConway’s Game of Life as a web API

using .NET and C#

Page 5: BDD All the Way Down Slides - megakemp.com

BDD is a software development technique that evolves from TDD and aims to bridge the gap between business stakeholders

and programmers.

What is BDD?

Page 6: BDD All the Way Down Slides - megakemp.com
Page 7: BDD All the Way Down Slides - megakemp.com

Because TDD doesn’t say where to start, what to test, how the tests should be named

and understand why they fail.

Why?

Page 8: BDD All the Way Down Slides - megakemp.com

Because everyone in the team needs a common language to understand each other

about the requirements of the software.

and...

Page 9: BDD All the Way Down Slides - megakemp.com

How?

Page 10: BDD All the Way Down Slides - megakemp.com

Build or Grow?

Page 11: BDD All the Way Down Slides - megakemp.com
Page 12: BDD All the Way Down Slides - megakemp.com
Page 13: BDD All the Way Down Slides - megakemp.com

We grow the system incrementally from performing simple end-to-end functions

to more complex ones while keeping everything working.

Page 14: BDD All the Way Down Slides - megakemp.com

The thinnest slice of functionality thatcan be implemented while setting up

the necessary infrastructure that enables the system to grow.

The Walking Skeleton

Page 15: BDD All the Way Down Slides - megakemp.com

Write����������� ������������������  a����������� ������������������  failing����������� ������������������  end-to-end����������� ������������������  test

Write����������� ������������������  a����������� ������������������  failing����������� ������������������  unit����������� ������������������  test

Make����������� ������������������  thetest����������� ������������������  pass

Refactor

The Development Cycle

Page 16: BDD All the Way Down Slides - megakemp.com

TakeawaysFocus on the expected behavior of the system in a given scenario

Define a common vocabulary for the project’s domain

Name your tests as phrases the read like specifications

Page 17: BDD All the Way Down Slides - megakemp.com

Learn moreIntroducing BDD by Dan North http://bit.ly/bddintro

Growing Object-Oriented Software Guided by Tests http://bit.ly/goosbook

Demo: Conway’s Game of Life http://bit.ly/bddgameoflife !

Page 18: BDD All the Way Down Slides - megakemp.com

!

"#

@ecampidoglio

megakemp.com

Contact me

[email protected]