Testing is Fun in Python!
summary
Claims that testing in Python is practical and enjoyable and surveys five frameworks: unittest, doctest, nose, pytest, and Avocado. Shows concrete examples: test classes and functions, parameterized cases, fixtures, command-line runners, XML reports and coverage hooks, and directory layouts. Notes surprises: nose is effectively legacy, Avocado is Linux‑centric, pytest handles parameterization and fixtures best and is recommended; includes runnable examples and explains how to generate reports that verify whether tests actually work.
AI-written summary · about
chapters (9)
- 0:00Testing in Python
- 2:52Automate your tests
- 13:47Python test frameworks
- 18:30Unit test deep dive
- 21:00Doc test validation
- 26:42Nose unit tests
- 32:49Pytest modern alternative
- 37:22Avocado multi-language
- 40:12Summary
related talks
29mAvocado testing framework and how can make your testing easier
27mWhy I use py.test and maybe you should too
01h 23mPython Testing Fundamentals
35mTesting: Choose Your Weapons
35mTurning test writing into a consistently brief and pleasant experience
38mTesting for the Terrified: How to Write Tests, Conquer Guilt, and Level Up
59mTesting in Python
28mEgad! How Do We Start Writing Better Tests?
