~/talk

Behat Best Practices

Talkat PHP Yorkshire 2018 · 2018-04-13..04-14· [testing, developer-experience]
slides:none on file

Argues that the best practice is to do BDD with Behat and to drive the domain model directly for fast, descriptive acceptance tests; shows a concrete feature (course proposed with class size 2–3) with three scenarios and implements Course, Learner and ClassSize value objects until tests go green. Recommends a service layer tested via a Symfony/PSR-11 extension, using Mink + Selenium or Chrome headless for UI, and use in-memory repositories to keep acceptance suites fast and reliable.

AI-written summary · about

  1. 0:00Introduction and speaker setup
  2. 1:02What is BDD and Behat
  3. 3:13Business problems to software solutions
  4. 8:40Behavior and examples in BDD
  5. 15:17BDD beyond testing
  6. 18:07Introducing Behat and Gherkin
  7. 22:05Automating domain model tests
  8. 33:29Ubiquitous language in domain models
  9. 33:49Testing service layer with Behat
  10. 41:44Fake infrastructure for fast tests
  11. 47:10UI testing pitfalls and alternatives
  12. 51:02Mink and browser automation
  13. 56:09Summary and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.