~/talk

Property Based Testing in Python with Hypothesis

Talkat PyCon APAC 2019 · on Saturday, 2019-02-23· [python, testing]
slides:none on file

Property based testing using Hypothesis generates hundreds of random inputs via strategies, runs them under pytest, and automatically shrinks failures to minimal counterexamples. Controls like max_examples and timeout tune effort, assume/filter trim generated data, and a local cache records failing cases (not typically committed). Stateful testing reproduces complex sequences — for example an open close lookup pattern that exposes a rare database error — demonstrating concrete bugs found and reduced to minimal repros.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42About Anthony
  3. 7:47History of Property Based Testing
  4. 10:16Hypothesis
  5. 17:27Common Patterns
  6. 24:46Stateful Systems
  7. 31:15Questions
~/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.