4 ms·
There is a subtle art to selecting the granularity of testing that takes a while to learn This is very true. The only way to learn TDD is to overdo it. You n
by bkovitz 17y ago
There is a subtle art to selecting the granularity of testing that takes a while to learn
This is very true. The only way to learn TDD is to overdo it. You need at least one project (maybe on your own time) where you over-test and find that your unit tests are making the code harder to modify, not easier. It's sort of like inheritance. You have to abuse it to learn that it's best used pretty lightly and obviously.
I knew even before I started that TDD is an aid to design, not a substitute for QA. Still, I got charged up with the idea that my tests were going to cover the entire space of all possible inputs. Bad idea. The resulting pain taught me a lot.