4 ms·
If I write a bunch of tests for new code, and all of them pass on the first attempt, I'm immediately suspicious of a far more egregious bug hiding somewhere…
by 9dev 2y ago
If I write a bunch of tests for new code, and all of them pass on the first attempt, I'm immediately suspicious of a far more egregious bug hiding somewhere…
- noisy_boy 2y ago// Todo: remove return true;
- kps 2y ago/bin/true used to be an empty file. On my desktop here, it's 35K (not counting shared libraries), which is an asolute increase of 35K and a relative increase of ∞%.
- deleted 2y ago[deleted]
- throwanem 2y agoWhere feasible, I like to start a suite with a unit test that validates the unit's intended side effects actually occur, as visible in their mocks being exercised.
- michaelcampbell 2y ago"never trust a test you've never seen fail." has kept me honest on more than one occasion.