2 ms·
Of course creating mocks or circumventing the database may create more bugs (or hide more) than just wait the couple of minutes for the real thing Adding anoth
by raverbashing 13y ago
Of course creating mocks or circumventing the database may create more bugs (or hide more) than just wait the couple of minutes for the real thing
Adding another failure point is exactly what the name says: another possibility of error or bug
Sure, we can talk about the "one true way" of doing tests, how to make hundreds of tests run in a short time, etc (the fact that TDD insists in creating one test for each tiny thing goes against it, btw) but yeah, I prefer spending more time solving the problem, and not testing around it.
- gary_bernhardt 13y agoTDD is a way of writing tests, not a prescription about when to write them. I explicitly say in the post that I only do TDD 75% of the time for web apps and more like 50% for other code.