~/talk

More testing with fewer tests

Talkat PyCon AU 2016 · 2016-08-12..08-16· [testing, python]
links:none on file
slides:none on file

Explains how Hypothesis generates thousands to millions of inputs so tests cover corner cases automatically, showing a concrete bug where averaging an empty list causes division by zero, floating‑point cast surprises, and a run‑length encode/decode property. Describes state-based testing that generates sequences of tree insert/delete operations and finds real bugs (Mercurial branch name with a double slash). Mentions Django and numpy plugins and the ability to freeze failing examples for repeatable CI runs.

AI-written summary · about

  1. 0:00Introduction
  2. 2:15Test cases
  3. 2:50Corner cases
  4. 4:18Example
  5. 6:23Propertybased testing
  6. 11:55Run protest
  7. 17:08Hypothesis test cases
  8. 18:06Other properties
  9. 20:06Pairing functions
  10. 22:03Security issues
  11. 23:04Statebased testing
  12. 24:14Binary tree
  13. 25:40Stateful tree
  14. 26:04State machine
  15. 28:03Test deletion
  16. 28:44Test case
  17. 30:35Hypothesis Works
~/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.