~/talk

Hypothesis: Simpler Powerful Test Cases

Talkat PyCon Israel 2017 · 2017-06-11..06-13· [testing]
name:Eli Gur
links:none on file
slides:none on file

Property-based testing using Hypothesis for Python with works with pytest and unittest and a simple pip install workflow. Write properties (given, assume) and Hypothesis generates up to ~2000 cases, finds surprising failures (double-negation breaks on None and certain floats), finds minimal counterexamples by shrinking to the simplest failing input, and caches failures for replay. It supplies strategies for ints, floats, text, dates, lists, recursive structures, building objects and stateful tests so complex scenarios are generated and reproduced.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:02Introduction to hypothesis
  3. 4:52Basic testing strategies
  4. 8:25Data generation features
  5. 12:14Working with complex types
  6. 14:26Advanced data generation
  7. 18:11Caching and stateful testing
  8. 20:48Live code demonstration
  9. 24:07Questions and answers
~/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.