4 ms·
You write tests to automate tests you would have to otherwise perform manually. That is the only reason tests exist, to automate the boring task of testing. Th
by ____nope 10y ago
You write tests to automate tests you would have to otherwise perform manually. That is the only reason tests exist, to automate the boring task of testing.
That's one problem with the TDD mindset. If you start by looking for things to test, you might come up with unlikely scenarios or cases that don't matter much for your user.
- sidlls 10y agoOr even worse you start writing code for "testability" and it becomes a bloated mess of one- or few-liner functions that are only called in one location by some other function.