~/talk

Visual Unit Tests and Live Coding

Talkat PyCascades 2026 · 2026-03-21..03-22· [testing]
slides:none on file

A Python workflow that combines a live coding plugin with fast visual unit tests actually lets code changes redraw plots instantly and drive UI tweaks at pixel level. Uses Matplotlib and PySide for rendering, a custom pixmap differ that produces actual/expected/diff images, and a tetromino crossword PDF generator as a concrete example that is iteratively tuned until image tests pass. Covers brittleness from fonts and anti‑aliasing and fixes like rounding, blurring, tolerances and deterministic text rendering.

AI-written summary · about

  1. 0:00Visual unit tests intro
  2. 1:12Speaker and focus
  3. 2:48Exploring data live
  4. 8:12Live Matplotlib demo
  5. 11:32Unit tests lightning talk
  6. 15:49Live coding meets unit tests
  7. 18:44Visual tests in puzzle project
  8. 24:07Testing puzzle components
  9. 26:05Debugging puzzle code
  10. 29:20Testing puzzle layout
  11. 32:31Visual testing challenges
  12. 33:35Reducing visual test friction
  13. 36:00Closing remarks
~/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.