TDD patterns

Post on 02-Jul-2015

863 views 0 download

description

Patterns in coding, developing and leading TDD.

Transcript of TDD patterns

@gil_zilberfeld

TDD Patterns

@gil_zilberfeld

Hello!

I AM GIL ZILBERFELD

www.gilzilberfeld.comwww.everydayunittesting.com

www.fastee.im

@gil_zilberfeld

@gil_zilberfeld

Patterns? In TDD?

Share, care and avoid those potholes

@gil_zilberfeld

The mental model

@gil_zilberfeld

Getting it!

Waiting for the value

Test-first != Test-Drive

@gil_zilberfeld

Stupid is as stupid does

Simplest thing that works

Stupidest thing that works

@gil_zilberfeld

Social patterns

@gil_zilberfeld

Togetherness

Alone

Driver-Navigator

Ping-Pong

Domain-Design

@gil_zilberfeld

Making decisions

@gil_zilberfeld

Versus

Greenfield vs brownfield

Feature vs bug fix

@gil_zilberfeld

From problem to solution

Starting from High-level design

ATDD as guidance

@gil_zilberfeld

Coming up with test cases

Identifying examples up front

Jump around

Incremental test-by-test

Copy and mutate

@gil_zilberfeld

Where do I stop?

Optimist vs pessimist

Best code ever

Running out of ideas

@gil_zilberfeld

Bangin’ that keyboard

@gil_zilberfeld

A rose by any other name

Convention-based

Just the specs

BDD style

@gil_zilberfeld

Two roads diverged in a wood

Easy path first

Happy path first

@gil_zilberfeld

Filling in the gaps

Test the whole functionality

Test just new functionality

Fill in the gaps without tests

@gil_zilberfeld

Algorithms

Examples

Build the framework

Hack and slash

Child tests

@gil_zilberfeld

In case of emergency

Test breaks many others

Retract and refactor

@gil_zilberfeld

Patterns are a communication tool

Once identified we can decide what to do about them

@gil_zilberfeld

Thanks!

ANY QUESTIONS?

You can find me at:

@gil_zilberfeld

http://www.GilZilberfeld.com

http://www.EverydayUnitTesting.com

http://www.fastee.im