~/talk

Behaviour Driven Development and Behat: Telling Stories Through Code

Talkat PHP UK Conference 2018 · 2018-02-14..02-16· [testing, developer-experience]
slides:none on file

Argues that BDD complements TDD by driving design with concrete examples and shows a working Behat workflow: write Gherkin features (PlayStation 4 basket examples, delivery rules), run tagged suites (domain / web UI / JavaScript) with Behat + Gherkin + Mink + Selenium, match steps to code via contexts, and inspect results — three scenarios passed (13 steps) in the demo and the JS browser check completes in 1.67 seconds, producing green tests and a maintainable separation of behavior and implementation.

AI-written summary · about

  1. 0:00Start
  2. 1:44TDD ALONGSIDE BDD
  3. 3:31RIGHT THING
  4. 5:08WE'LL BE LOOKING AT SCENARIO BDD
  5. 7:30MULTIPLE STAKEHOLDERS
  6. 9:06CONVERSATIONS ARE KEY
  7. 10:13HAVE CONVERSATIONS BEFORE YOU START WRITING CODE
  8. 11:54EXAMPLES ARE ESSENTIAL
  9. 16:46KEYWORD BASED
  10. 17:01DOCUMENTATION
  11. 21:40SCENARIOS ARE EXAMPLES
  12. 21:57FEATURES CAN HAVE MULTIPLE SCENARIOS
  13. 25:35STORY STRUCTURE: THE MAKEUP OF A FEATURE FILE
  14. 26:01WRITING A GOOD STORY
  15. 30:32SUITES & PROFILES
  16. 31:05FOR EXAMPLE SUITES CAN USE THE SAME FEATURE FILES. OR SUITES CAN USE DIFFERENT FEATURE FILES
  17. 31:18WITH SUITES AND TAGS. YOU CAN USE THE SAME FEATURE FILE TO TEST DIFFERENT IMPLEMENTATIONS
  18. 32:37WITH SUITES AND TAGS YOU CAN CHANGE IMPLEMENTATION WITHOUT CHANGING YOUR DOCUMENTED BUSINESS RULES
  19. 43:11IN SUMMARY
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.