63.8 Test Output: Verbosity, Capturing, and Logging
Right, let’s talk about output. Because if you’re running tests and all you get is a blinking cursor followed by a cryptic .F..E.. string, you’re not debugging, you’re deciphering hieroglyphics. We’re better than that. The goal is to get the information you need, precisely when you need it, without the noise. Let’s break down how unittest and pytest handle this, because their philosophies are… different. The Humble -v Flag: Your First Line of Defense Forgetfulness is a universal constant. You will run a test, it will fail, and you will immediately forget which test file you were even in. This is why verbosity (-v) is your best friend.