~/talk

Test-Driven Repair

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [testing]
slides:none on file

Assigning tests to a 3,000-line enterprise Java mess, the concrete workflow is: pick an interface you can invoke, wrap it in JUnit or WebDriver or call the executable as a subprocess, add data-driven parametric tests rather than bespoke test functions, measure branch coverage (a 26-line example needs five tests for full branch coverage), cluster tests to avoid repeated setup, run nightly full-sanitization suites, and refactor toward a functional-core/imperative-shell so fast pure functions get unit tests and the slow IO stays in a few integration tests.

AI-written summary · about

  1. 0:00Start
  2. 5:24Test-Driven Development
  3. 6:03Structured Testing
  4. 6:41Why write tests early?
  5. 11:48Test Coverings
  6. 13:07Interfaces for testing
  7. 17:45Interface test invariants
~/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.