Testing in Python
summary
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
chapters (4)
- 0:00Start
- 2:34unittest Testing with the standard library
- 9:21Testing for exceptions
- 45:13Cosmic Ray Mutation testing for Python
related talks
45mMutation Testing in Python
57mMutation Testing in Python with Cosmic Ray
01h 07mSufficiently Advanced Testing
47mMutation Testing: Did my test break my code ? 🤔
31mCan You Trust Your Tests?
32mMore testing with fewer tests
35mTesting: Choose Your Weapons
41mProperty Based Testing in Python with Hypothesis
