~/talk

Hitting a Gold Mine:How to Set the Gold Standard With Golden Tests

Talkat Droidcon London 2023 · 2023-10-26..10-27· [testing]
links:none on file
slides:none on file

Golden tests render Flutter widgets to PNGs and compare them as snapshots; the team uses golden_toolkit and optionally alchemist for setup, writes at least one per page plus unit-like tests for components, and generates variants for dark mode, tablet and RTL. CI breaks appear after macOS/Xcode upgrades because Apple Silicon vs Intel differences produce ~0.01% difference; solving it requires either unified CI image generation or a tolerant comparator — they fix failures by allowing per-channel pixel diffs of ±1 and a small global threshold, which stabilizes results.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:14What are golden tests
  3. 8:00Case study in banking app
  4. 12:56Testing widgets and pages
  5. 18:01CI issues with golden tests
  6. 26:08Non-obvious use cases
  7. 33:58Summary and key takeaways
~/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.