BDD all the way down Enrico Campidoglio @ecampidoglio How to - - PowerPoint PPT Presentation

bdd all the way down
SMART_READER_LITE
LIVE PREVIEW

BDD all the way down Enrico Campidoglio @ecampidoglio How to - - PowerPoint PPT Presentation

BDD all the way down Enrico Campidoglio @ecampidoglio How to apply the principles and techniques of B ehavior D riven D evelopment in practice while using .NET By implementing the first rule of Conways Game of Life as a


slide-1
SLIDE 1

Enrico Campidoglio


BDD
 all the way down

@ecampidoglio


slide-2
SLIDE 2

How to apply the principles and techniques

  • f Behavior Driven Development


in practice while using .NET

slide-3
SLIDE 3

By implementing the first rule of
 Conway’s Game of Life as a web API using .NET and C#

slide-4
SLIDE 4

Conway’s Game of Life

An implementation of Conway’s Game of Life as a web app built in .NET

slide-5
SLIDE 5

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

slide-6
SLIDE 6
slide-7
SLIDE 7

Because TDD doesn’t say where to start, what to test, how the tests should be named and understand why they fail. Why?

slide-8
SLIDE 8

Because everyone in the team needs a common language to understand each other about the requirements of the software. and...

slide-9
SLIDE 9

How?

slide-10
SLIDE 10

Build or Grow?

slide-11
SLIDE 11
slide-12
SLIDE 12
slide-13
SLIDE 13

We grow the system incrementally from performing simple end-to-end functions to more complex ones while keeping everything working.

slide-14
SLIDE 14

The thinnest slice of functionality that
 can be implemented while setting up
 the necessary infrastructure
 that enables the system to grow. The Walking Skeleton

slide-15
SLIDE 15

Writeafailing end-to-endtest Writeafailing unittest Makethe
 testpass Refactor

The Development Cycle

slide-16
SLIDE 16

Takeaways

Focus 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

slide-17
SLIDE 17

Learn more

Introducing 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

slide-18
SLIDE 18
  • @ecampidoglio

megakemp.com Contact me enrico@tretton37.com