~/talk

Cucumbers Have Layers: A Love Story

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby, testing]
slides:none on file

Argues Cucumber can be fast and useful by splitting tests into layers: core/model/ui with a single set of tiny step adapters invoking a step driver per layer. Builds a commissions engine as POROs behind ActiveRecord and Rails views, exercises it with 64 core scenarios <1s, 118 model scenarios <8s, 11 UI scenarios 3s, ~40s total across six runs. Warns against 750 step defs and 90‑minute suites, browser‑only unit tests, and putting business logic in huge steps; promotes features describe domain not interface and step definitions are lava.

AI-written summary · about

  1. 0:00Intro
  2. 0:20ACCESSIBILITY
  3. 4:43CUCUMBER 101: CUCUMBER
  4. 5:08GHERKIN IS: AWESOME
  5. 5:33GHERKIN IS NOT: CODE
  6. 6:10CUCUMBER IS NOT: TDD
  7. 6:34Cucumber Scenario
  8. 8:32A THINKING TOOL
  9. 9:16GHERKIN IS FOR
  10. 9:43DESCRIBING SOFTWARE
  11. 9:56USER INTENT
  12. 10:27AUTOMATING TESTS (maybe)
  13. 11:12CLASSIC BLUNDERS
  14. 12:38ACCEPTANCE ASTRONAUT
  15. 13:51CUKING REGRESSION TESTS
  16. 14:43Too MANY SCENARIOS* (to run on every commit)
  17. 15:20AUTOMATING EVERY FEATURE
  18. 15:55ABUSING STEP DEFINITIONS
  19. 17:38THE QUESTION
  20. 18:30THE PROJECT
  21. 20:13TARGETS
  22. 20:50PAY CURVE
  23. 26:06ARCHITECTURE
  24. 30:24THROWING A SWITCH
  25. 31:40OBSERVATIONS
  26. 31:50THE STEP DEFINITIONS ARE LAVA
  27. 33:50SUSTAINABILITY
  28. 35:03PERFORMANCE
  29. 36:16TAKEAWAYS
~/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.