New answers tagged


I am in favor of using third person, present tense without a qualifier. My main argument is that: A test is a story. A story consists of scenes. Each scene describes: subject context action Example: DESCRIBE: getReceipt function CONTEXT: receipt exists IT: returns the receipt Just like a good story, a good test is easy to read. A story ...


This isn't true. It's much better to place your unit-tests along side the production code when the production code especially when the production routine is pure. If you're developing under .NET for instance, you could put your test code in the production assembly, and then use Scalpel to remove them before you ship.

Top 50 recent answers are included