Behat - Drupal Yorkshire

3,467 views

Published on

Behat Presentation given at Drupal Yorkshire on June 11th 2013.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,467
On SlideShare
0
From Embeds
0
Number of Embeds
65
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Behat - Drupal Yorkshire

  1. 1. 11th June 2013BehatBehavioural Driven Development for PHP
  2. 2. What’s in the box?
  3. 3. What should be in the box?
  4. 4. Nathan Lisgo✤ Developer for over 14 years✤ Drupal 4 years✤ @nlisgo✤ https://drupal.org/user/796872
  5. 5. BDD is a second-generation, outside-in, pull-based,multiple-stakeholder, multiple-scale, high-automation,agile methodology. It describes a cycle of interactionswith well-defined outputs, resulting in the delivery ofworking, tested software that matters.Dan North, How to sell BDD to the business
  6. 6. ✤ 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 failsBehavioural Driven Development
  7. 7. When is the project complete?✤ When the time is up?✤ When the money is spent?✤ When the requirements have been met?
  8. 8. 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
  9. 9. Gherkin
  10. 10. Gherkin
  11. 11. Behat✤ Konstantin Kudryashov (@everzet)✤ PHP 5.3✤ Behat was inspired by Rubys Cucumber project, especially its syntax
  12. 12. Demo✤ https://github.com/nlisgo/drupalyorkshire-behat
  13. 13. Questions
  14. 14. References✤ http://dannorth.net/introducing-bdd/✤ http://dannorth.net/whats-in-a-story/✤ http://behat.org/✤ http://everzet.com/

×