~/talk

Add Tests to Legacy Code with Approval Tests

Talkat Oracle Code One 2018 · 2018-10-22..10-25· [testing]
links:none on file
slides:none on file

Shows how Approval Tests turns untestable legacy code into verifiable outputs by dumping program state to human-readable files, opening a diff tool, and accepting the correct result as an approved file. Demonstrates creating a seam (replace System.out with a logger, inject Random) to make runs deterministic, adding characterization tests to lock behavior before refactoring, and even image and HTML diffs. Java support is current, Maven publishing is pending, and approved files live in source control for CI.

AI-written summary · about

  1. 0:00Start
  2. 3:39Approval Tests
  3. 4:37Demo
  4. 14:21Add Tests for Embedded Numbers
  5. 18:39Characterization Tests
  6. 21:28Legacy Code Maintenance Techniques
  7. 29:29Code Coverage
  8. 33:11Verify User Interface
  9. 35:55Limitations
  10. 37:48The Seven Deadly Sins of Software Development
  11. 42:46Type Based Assertions
~/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.