~/talk

Unselfish Testing

Talkat GOTO Chicago 2015 · 2015-05-11..05-14· [testing]
links:none on file
slides:none on file

Tests that are hard to read come from over‑DRYing: loops, setup fixtures and object‑mothers hide failures and force navigation. Recommendation is concrete: replace looped assertions with separate tests, inline expected string literals, use solitary unit tests (mock dependencies with Mockito or simple stubs) for speed and isolation, keep a few sociable integration tests for coverage, and prefer one assertion per test. Aim for suite runs under a few seconds, move shared builders to suite level, and delete flaky low‑ROI tests.

AI-written summary · about

  1. 0:00Start
  2. 0:36When Do We Run Our Tests
  3. 12:49Applying Dry at the Suite Level
  4. 16:15Expect Literals
  5. 16:55Inline a Setup
  6. 20:30Customer Acceptance
  7. 24:47Solitary Unit Tests
  8. 25:25Cascading Failures
  9. 32:16How Else Can You Improve the Test Suite
  10. 38:15Stop Thinking about Your Test from the Individual Point of View
~/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.