~/talk

Writing sustainable automated tests

links:none on file
slides:none on file

Explains why sustainable tests must resist refactoring and gives concrete choices: use unit kernel functional tests in Drupal, mock at most one or two dependencies in unit tests, use kernel tests when database/bootstrap is required, and use Behat/functional tests for browser flows. Notes a real rollout at a company with ~1,000 tests (few unit tests, many kernel/functional) and recommends Prophecy for mocking. Cites a Microsoft study: 15–30% more time to add tests but 29% fewer defects after testing and up to 91% fewer with TDD.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:53Software development as a craft
  3. 5:22What code to test and avoid
  4. 7:06Unit kernel and functional tests
  5. 10:40Dependencies and test types
  6. 17:09Design infrastructure vs domain code
  7. 24:57Test-driven development approach
  8. 28:53Time investment and benefits of testing
  9. 33:04Q&A on testing challenges
~/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.