~/talk

Property based testing with Hypothesis

Talkat NDC TechTown 2017 · 2017-10-17..10-20· [testing, python]
slides:none on file

Hypothesis is a Python property-based testing library that generates hundreds to thousands of concrete examples from high-level properties, finds empty and common edge cases (e.g. min on empty lists, binaryornot crash, broken means, Unicode normalization mismatches), and automatically shrinks failing examples to minimal counterexamples. It records failures on disk so reruns reproduce bugs (example database persists failures), uses coverage feedback to bias generation, and is extensible — a Rust core and Ruby port are planned — letting tests expose surprising cross-module and serialization/normalization bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 4:50Finding bugs
  3. 7:59State
  4. 10:48Equivalence
  5. 15:43Fussing assumption
  6. 16:30Obvious bugs
  7. 18:13Common bugs
  8. 20:59Finding common bugs
  9. 22:12Decoupling
  10. 22:47Bugs
  11. 26:28State collapse
  12. 28:50Serialization
  13. 32:32Normalization
  14. 47:32Roadmap
~/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.