~/talk

Write Less and Test More with Data Regression Testing

Talkat PyCon US 2020 · 2020-04-15..04-23· [testing]
links:none on file
slides:none on file

Shows a concrete workflow: use pytest-regressions and its fixtures — data_regression, file_regression, image_regression, num_regression — to serialize expected outputs to CSV/JSON/image files and fail when diffs exceed tolerances. Demonstrations include generating 100-point quadratic Bézier outputs, comparing rendered Flask HTML fragments, snapshotting SQLAlchemy-serialized models, and pixel-diffing Matplotlib images. The plugin creates baseline files, supports per-field absolute/relative tolerances, and offers a force-regenerate option so baseline updates and CI reproducible tests actually work.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08The problem with traditional testing
  3. 3:38Defining data regression testing
  4. 6:57Introduction to pytest-regressions
  5. 8:04Numerical data regression
  6. 16:43File and HTML regression
  7. 21:24Basic types and API regression
  8. 23:43Image regression testing
  9. 25:23Advanced usage and tools
  10. 28:37Conclusion and resources
~/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.