A Unit Test Would Have Caught This...
summary
Argues that small, cheap tests give big quality gains and shows concrete tools and practices: use shellcheck and runtime flags (-u -e) for Bash, choose shunit2 or bat if unit tests are needed, run Python linters and unit tests (caught many bugs during a Python 3 migration), mock external calls instead of deleting real files, and run Chef through RuboCop/foodcritic plus Facebook’s taste-tester on at least one host. Reports ramp time to on‑call dropping from six months to three months.
AI-written summary · about
chapters (7)
- 0:00Introduction to testing
- 1:17Common testing barriers
- 5:41Testing shell scripts
- 9:13Testing with Python
- 14:26Mocks and dependencies
- 17:00Testing configuration
- 21:34Cultural benefits and next steps








