~/talk

Mutation Testing in Python

Talkat GOTO Copenhagen 2015 · 2015-10-05..10-06· [python]
links:none on file
slides:none on file

Built a Python mutation tester called Cosmic Ray that mutates AST nodes, installs mutated modules via importlib finders/loaders, and runs tests in isolated processes using multiprocessing and an actor-style queue. It supports pytest plugin and unittest runners, parallelizes across cores, and uses baselines plus git-diff to avoid full runs. Results classify mutants as killed, incompetent (crashes or timed-out loops) or survived; equivalent mutants remain a hard, practical-to-detect problem and runtime can be very long.

AI-written summary · about

  1. 0:00Introduction
  2. 3:27What is mutation testing?
  3. 4:38Basic algorithm
  4. 5:12What does mutation testing tell us?
  5. 7:31Goal #1: Coverage analysis
  6. 8:29Goal #2: Detect unnecessary code
  7. 10:03Examples of mutations
  8. 12:56It takes a loooooooong time
  9. 15:51Incompetence detection
  10. 17:12Equivalent mutants
  11. 19:54Cosmic Ray operates on packages
  12. 22:25Test system plugins
  13. 25:10Operators
  14. 26:15Example operator: Reverse unary subtraction
  15. 27:02Module management: overview
  16. 29:03Module management: Finder
  17. 30:47Module management: Loader
  18. 31:33multiprocessing
  19. 35:30asyncio
  20. 36:03Operational overview
~/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.