~/talk

Adventures in not writing tests

Talkat PyData London 2024 Β· 2024-06-14..06-16Β· [testing, developer-experience]
slides:none on file

Claim: Hypothesis ghostwriter generates runnable tests from type hints so many data-analysis checks get created automatically. Demonstrations run on a 10,000-sample scenario and find real failures β€” ceiling() needs NaN and Infinity handling, empty DataFrame paths break aggregation, infinities produce NaN math issues. Shows fixes and workflow tools like Hypothesis extras pandas, assume, target and register_type_strategy, plus CI reproducibility settings. Net result is measurable time saved and more edge cases caught, with concrete examples that actually fail and then get fixed.

AI-written summary Β· about

  1. 0:00Introduction
  2. 2:35Why test writing focus
  3. 5:47Property-based testing with Hypothesis
  4. 11:27Edge cases in standard library
  5. 13:36Data frame testing with Hypothesis
  6. 18:35Hypothesis Extras for Pandas
  7. 20:22Refining tests with assume
  8. 21:50Advanced Hypothesis features
  9. 25:05Conclusions and when to test
~/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.