~/talk

Just because AI can write your tests - should it?

Talkat PyBay 2025 · on Saturday, 2025-10-18· [ai-assisted-development, testing]
slides:none on file

Demo uses a FastAPI app and asks LLMs to generate tests: GB5 writes 10 tests (8 pass, 75% route coverage) and Sonnet 4.5 writes 61 tests (96% coverage) but takes more tokens and time. Generated tests exhibit flaky cleanup, duplicated cases, boring fake data, and shallow assertions. Remedies shown: use pytest parameterize and fixtures, faker for realistic inputs, snapshot testing for JSON, and Hypothesis/Schemathesis to find huge-int and schema edge-case errors. Use LLMs to bootstrap but seed them and add specialist tools.

AI-written summary · about

  1. 0:00Introduction and poll
  2. 1:12Why bees matter
  3. 5:44LLMs as generalists
  4. 7:09AI writing tests demo
  5. 9:12Coverage debate and improvements
  6. 11:38Fixing redundant and fake test data
  7. 13:20Better fake data with Faker
  8. 14:46Testing JSON endpoints with snapshots
  9. 16:31Beyond coverage with property tests
  10. 18:58Property-based testing with Hypothesis
  11. 21:27Schema testing with Schemathesis
  12. 22:32Should you use AI for tests?
  13. 24:17Specialists vs generalists in testing
  14. 25:17Q&A on TDD and LLM tests
  15. 27:48Future of test writing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.