~/talk

Mutation Testing in Python with Cosmic Ray

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [testing, python]
links:none on file
slides:none on file

Mutation testing tool Cosmic Ray mutates Python ASTs (via Parso), runs the real test command (usually pytest) and records results in SQLite; a demo runs 67 mutants and later reports 2 survivors. It finds real issues (an unnecessary zero-check in an IBM‑float conversion), supports operator plugins, timeouts/baseline timing to avoid infinite loops, and parallel distributors (local or HTTP). Operators enumerate mutation sites, apply one change at a time, and results are replayable and resumable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Mutation testing theory
  3. 9:07Code mutation types
  4. 13:20Practical challenges
  5. 21:43Cosmic Ray intro
  6. 28:50Cosmic Ray implementation
  7. 39:03Cosmic Ray improvements
  8. 41:10Cosmic Ray demo
  9. 46:45Results analysis
  10. 51:01Real-world benefits
  11. 51:42Q&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.