~/talk

Testing Legacy Code - What To Do When It Seems Untestable

Talkat TestCon Europe 2022 · 2022-10-26..10-27· [testing]
slides:none on file

Claims that nothing is truly untestable and that tests become a living contract with requirements, demonstrated by turning 0 tests into 20,000 tests across five repos that run in 12 minutes. Starts by writing a failing test for the observed bug or new feature, uses PHP tooling like XDebug, unpicks a near 10,000 line god controller, and through testing and refactoring removes 29 steps from a complex calculation, catching hidden bugs and increasing confidence.

AI-written summary · about

  1. 0:00Introduction
  2. 1:42Christophers background
  3. 3:20School of Code
  4. 4:47Christophers favorite and least favourite examples
  5. 7:29Oblivion
  6. 8:40Code Now vs Legacy Code
  7. 11:03What are the risks
  8. 13:41Traceability
  9. 18:25readability vs reliability
  10. 23:45common problems
  11. 26:49why do I need testing
  12. 27:24first test
  13. 30:00high test coverage
  14. 31:25aiming for confidence
  15. 32:12paying for testing
  16. 36:26refactoring
~/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.