~/talk

Bending Behat's Benefits: A live coding adventure

Talkat MidCamp 2018 · 2018-03-08..03-12· [testing, web-platform]
links:none on file
slides:none on file

Live coding shows Behat and the Drupal Behat Extension driving a vanilla Drupal 8.5 Umami site: tests create content (10 articles), toggle the promoted flag, and assert related-sidebar behavior so tests stay stable as editors add content. A prebuilt region map maps friendly names to CSS selectors; one scenario runs ~36 assertions to prove ordering and promotion rules. CI runs are illustrated with CircleCI, and headless browser options (Selenium vs headless Chrome) are compared; tests pass but reveal that unclear client requirements break behavior, so clarity trumps automation.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 3:58Why use Behat for testing
  3. 7:52Quick fix without clarity
  4. 12:13Writing first Behat test
  5. 16:33Understanding Behat definitions
  6. 20:30Automating test content
  7. 23:22Hiding complexity in tests
  8. 29:49Client feedback and mistakes
  9. 31:17Importance of client conversations
  10. 33:30Behavior driven development
  11. 37:02Making tests readable
  12. 42:21Resources and next steps
  13. 43:44Q&A session
~/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.