behavior driven development & testing introduction

17
Behavior Driven Development / Testing Cuz’ everyone does TDD, so we invented something new! Christian Jantz Freelancer Backend Development SNM Style Net Media GmbH 01.10.2015

Upload: christian-jantz

Post on 11-Jan-2017

254 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Behavior Driven Development & Testing Introduction

Behavior Driven Development / TestingCuz’ everyone does TDD, so we invented something new!

Christian Jantz Freelancer Backend Development

SNM Style Net Media GmbH 01.10.2015

Page 2: Behavior Driven Development & Testing Introduction

http://i.ytimg.com/vi/752V173e31o/maxresdefault.jpg

Page 3: Behavior Driven Development & Testing Introduction

http://s3.amazonaws.com/rapgenius/funny-monkey-1.jpg

here be monkeys!

Page 4: Behavior Driven Development & Testing Introduction

Downtime =

http://www.leadliaison.com/revenue-generation-blog/marketing-automation-expensive/

Page 5: Behavior Driven Development & Testing Introduction

misbehavior =

http://www.sharepick.com/is-it-expensive-to-build-credit/

Page 6: Behavior Driven Development & Testing Introduction

http://matthewturland.com/slides/jstesting/img/unit-test-all-the-things.jpg

Page 7: Behavior Driven Development & Testing Introduction

• testMethodA()

• testMethodB()

• testMethodX()

• fixtures, preConditions, …

Page 8: Behavior Driven Development & Testing Introduction

http://www.mathplusacademy.com/wp-content/uploads/2014/09/coding-national-curriculum-computing.jpg

Page 9: Behavior Driven Development & Testing Introduction

but Jan*!

*Mr. Product Owner. Code? Unit Tests?

Page 10: Behavior Driven Development & Testing Introduction

WTF

Page 11: Behavior Driven Development & Testing Introduction

• Features

• functionalities

• KPI’s

• A/B testing

• Stories

BEHAVIOR

Page 12: Behavior Driven Development & Testing Introduction

–Jan, Mr. Product Owner

„As a visitor, I want to buy all the products with one click, in order to make the business rich“

Page 13: Behavior Driven Development & Testing Introduction

–behat test specification

Given I am a website visitor

And my basket is empty

And I am logged in

When I click „buy all products“

Then I should get:

“““

All products bought.

Thank you for your business!

“““

Page 14: Behavior Driven Development & Testing Introduction

http://galerie.designnation.de/bild/40481

Jan, Mr. Product Manager

Page 15: Behavior Driven Development & Testing Introduction

slow

Page 16: Behavior Driven Development & Testing Introduction

• Unit Tests per Push

• Behavior per tag/ version/ pre deploy/ simply once a day!

Page 17: Behavior Driven Development & Testing Introduction