~/talk

Adventures in not writing tests

Talkat PyData NYC 2023 · 2023-11-01..11-03· [testing, python]
slides:none on file

Claim: type hints plus Hypothesis generate meaningful tests so you spend less time handcrafting examples. Tools used: Hypothesis Ghostwriter to scaffold tests, hypothesis.extra.pandas to synthesize DataFrames, and property-based assertions. Example runs with 10,000 samples expose NaNs, infinities, empty inputs and negative values that cause real failures; tests reveal bugs in aggregation and percentile code, lead to added guards and assumptions, and result in reproducible, automated checks that actually catch and fix faults.

AI-written summary · about

  1. 0:00Introduction
  2. 2:17Analysis code in practice
  3. 6:32Property-based testing with Hypothesis
  4. 13:28Bugs in vacation code
  5. 16:17Generating test data frames
  6. 21:20Edge cases with Hypothesis Pandas
  7. 23:55Advanced Hypothesis tools
  8. 26:05Tests versus Hypothesis
  9. 27:07Q&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.