~/talk

Testing in Python

Talkat NDC London 2017 · 2017-01-16..01-20· [python, testing]
links:none on file
slides:none on file

Covers concrete tools and results: demos use unittest, pytest, Hypothesis and Cosmic Ray; Hypothesis generates and shrinks failing inputs from integer/text/fraction/list strategies rather than hand-picking ranges, finding obscure bugs automatically. Cosmic Ray injects AST mutations, runs tests in a sandboxed Python process, stores results in a session database and distributes work via Celery; an example run creates 56 mutants and reports a 3.57% survival rate, then reproduces a surviving mutant after removing a specific test.

AI-written summary · about

  1. 0:00Start
  2. 2:34unittest Testing with the standard library
  3. 9:21Testing for exceptions
  4. 45:13Cosmic Ray Mutation testing for Python
~/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.