~/talk

I hate writing tests, that's why I use Hypothesis

Talkat PyData Global 2022 · 2022-12-01..12-03· [testing]
slides:none on file

Argues that Hypothesis replaces hand-picked examples with property-based testing that generates inputs and finds edge cases, using pytest integration via the given decorator and explicit strategies (text, numpy/pandas strategies via hypothesis[numpy]). Shows a round-trip encode/decode example, explains the Ghostwriter that ghostwriter generates tests from typing and runs a battery of checks (idempotence, round trips, equivalents). Notes generated tests can be slower and harder to read for very large libraries.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Traditional test challenges
  3. 3:37Property-based testing
  4. 7:53Hypothesis implementation
  5. 9:19Live demo with Hypothesis
  6. 12:52Hypothesis with NumPy
  7. 14:58Ghostwriter automation
  8. 18:05Ghostwriter strategies
  9. 23:05Limitations of Hypothesis
  10. 25:10Q&A
~/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.