3 ms·
> If it’s not easy to test something or setup a test for it it will probably never happen Absolutely right. And it's never easier to set up a test than when th
by schwartzworld 5y ago
> If it’s not easy to test something or setup a test for it it will probably never happen
Absolutely right. And it's never easier to set up a test than when the code is fresh in your mind.
I'm also the opinion that bug fixes, and especially regression fixes, should always have tests included. If you've tested your code in the first place, adding an extra test case is really easy. It's much worse when you realize that the author of the code (even if it's past-you) couldn't figure out how to test it, and now that's your problem.