~/talk

What Makes a Good Test: Writing Sustainable, Maintainable Tests

TalkinJapaneseat PHP Conference Japan 2023 · on Sunday, 2023-10-08· [testing, php]
links:none on file
slides:none on file

Defines a formula for test value = function / cost, where function means fast feedback and reliable documentation and cost means implementation, maintenance, and operation. Recommends the unit/integration/end-to-end test pyramid (keeping unit tests fast—Google guidelines: ~60s units, ~300s integration, ~900s e2e; pixiv runs unit+integration in ~5 minutes), prefers black-box tests to avoid brittle white-box coupling, and uses dependency injection and test doubles plus Arrange–Act–Assert and one-behavior-per-test to keep tests maintainable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:29Good tests matter
  3. 5:06What makes tests valuable
  4. 13:09Four principles
  5. 22:16Strategy and stability
  6. 24:06Q&A
~/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.