A test is a purchase, not a virtue
Testing discussions go wrong when tests are treated as morally good, so that more is better. Tests are a purchase. You spend writing time, run time on every commit forever, and maintenance time whenever the code they touch moves. What you buy is confidence that a specific kind of breakage will be caught before a user meets it.
Once it is a purchase, the useful questions become concrete:
- Which breakages would actually hurt, and how likely are they?
- What does catching this one cost, at each level I could catch it?
- What will this test cost me every time I refactor?
Key idea: the goal is not coverage of the code. It is coverage of the risk. A payment path with no tests and a settings toggle with five is a portfolio nobody chose deliberately, and it is the default outcome of writing tests wherever they are easiest to write.
Everything else in this course is machinery for spending that budget well.

