~/talk

"Tests as Classifiers"

Talkat PyCascades 2022 · 2022-02-05..02-06· [testing, developer-experience]
linkedin:moshezadka
slides:none on file

Proposes treating tests as binary classifiers that label a code change buggy or not buggy and evaluates suites with precision and recall combined into F and F‑beta scores. Recommends concrete measurements: run main repeatedly to find flaky tests, track test edits and whether reported bugs produced new tests, and use mutation testing plus CI/tracing to estimate missing alarms. Uses these numbers as a lagging guide to prioritize fixing flakes, tightening assertions, or increasing coverage.

AI-written summary · about

  1. 0:00Intro
  2. 2:13Acknowledgement of Country
  3. 2:25What is a classifier ?
  4. 2:49Classifier example: chihuahua or muffin
  5. 3:26Classifier failure: False alarm
  6. 4:05Classifier failure: Missing alarm
  7. 4:42Test (suites) as classifiers
  8. 7:07Always alarm: a test
  9. 7:37Never alarm: a test suite
  10. 8:17Why not simple classifiers?
  11. 10:30Balancing Precision and Recall: F score
  12. 11:40Balancing Precision and Recall: F beta score
  13. 12:27Balancing Precision and Recall: Who is beta?
  14. 13:39Beta: a Meaning
  15. 14:21Tests and the F score
  16. 15:07False Alarm: Flakey test
  17. 15:41False Alarm: Implementation test
  18. 16:26Missing Alarm: Non-covered code
  19. 16:56Missing Alarm: Loose assertions
  20. 17:45Estimating F score: Flakey tests
  21. 18:17Estimating F score: Implementation tests
  22. 18:59Estimating F score: Mutation testing
  23. 19:21Estimating F score: Check reported bugs
  24. 20:14Estimating F score: True alarms
  25. 21:15Estimating F score: Lagging indicator
  26. 22:00F score cautions
  27. 24:54Improving tests
  28. 25:18Improve: Flakey tests
  29. 25:37Summary: Goal
  30. 25:47Summary: Decide
  31. 25:58Summary: Improve
~/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.