~/talk

Sustainable way of testing your code

Talkat EuroPython 2015 · 2015-07-20..07-26· [testing, developer-experience]
links:none on file
slides:none on file

Claims a maintainable test architecture that survives years of change and shows concrete tools and tradeoffs: uses nose parameterized examples, exposes an inheritance bug with subclassed test data, and proposes a working alternative using a custom unit test loader (plus discussion of decorators, metaclasses and frames). Gives hard numbers — 23% of code is tests and test LOC jump from 143,000 to nearly half a million — and demonstrates checking uniqueness of Sentry handlers rather than brittle looped assertions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Readable tests
  3. 4:29Given-when-then pattern
  4. 8:47Organizing tests
  5. 10:38Loops harm debugging
  6. 12:08Parameterized tests
  7. 15:01Goals for parameterization
  8. 18:39Metaclasses for inheritance
  9. 22:07Frames for test generation
  10. 23:55Custom test loaders
  11. 26:34Applying methods
  12. 27:19Q&A
~/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.