Top Banner
11th June 2013 Behat Behavioural Driven Development for PHP
14

Behat - Drupal Yorkshire

May 08, 2015

Download

Technology

Nathan Lisgo

Behat Presentation given at Drupal Yorkshire on June 11th 2013.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Behat - Drupal Yorkshire

11th June 2013

BehatBehavioural Driven Development for PHP

Page 2: Behat - Drupal Yorkshire

What’s in the box?

Page 3: Behat - Drupal Yorkshire

What should be in the box?

Page 4: Behat - Drupal Yorkshire

Nathan Lisgo

✤ Developer for over 14 years

✤ Drupal 4 years

✤ @nlisgo

✤ https://drupal.org/user/796872

Page 5: Behat - Drupal Yorkshire

BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters.

Dan North, How to sell BDD to the business

Page 6: Behat - Drupal Yorkshire

✤ Where to start in the process

✤ What to test and what not to test

✤ How much to test in one go

✤ What to call the tests

✤ How to understand why a test fails

Behavioural Driven Development

Page 7: Behat - Drupal Yorkshire

When is the project complete?

✤ When the time is up?

✤ When the money is spent?

✤ When the requirements have been met?

Page 8: Behat - Drupal Yorkshire

Specification as a ubiquitous language

✤ Semi formal language shared by all team members (including non-technical)

✤ Language is both used and developed by all team members

✤ Common means of discussing the domain of the software

✤ Specification of desired behaviour

Page 9: Behat - Drupal Yorkshire

Gherkin

Page 10: Behat - Drupal Yorkshire

Gherkin

Page 11: Behat - Drupal Yorkshire

Behat

✤ Konstantin Kudryashov (@everzet)

✤ PHP 5.3

✤ Behat was inspired by Ruby's Cucumber project, especially its syntax

Page 12: Behat - Drupal Yorkshire

Demo

✤ https://github.com/nlisgo/drupalyorkshire-behat

Page 13: Behat - Drupal Yorkshire

Questions

Page 14: Behat - Drupal Yorkshire

References

✤ http://dannorth.net/introducing-bdd/

✤ http://dannorth.net/whats-in-a-story/

✤ http://behat.org/

✤ http://everzet.com/