News for hackers. Stuff that matters.
Re:How deep are your unit tests? by Silhouette on Monday December 10, 2012 @08:53AM (#4898953)
If all of your tests are integration tests and something fails, you have no idea which part of your stack the problem is in.

Not necessarily, because if you have a lot of integration tests then probably multiple ones will fail given a bug in a certain module, and the pattern of the failures might be all you need to locate the source of the problem.

One of the most successful projects I ever worked on, in robustness/quality terms, didn't really have any unit tests at all, but it had a comprehensive suite of end-to-end test cases that could be run automatically. Many of those didn't (and couldn't) have an absolute true/false outcome, either, but looking at the results they generated and applying various heuristics developed from experience, they were remarkably useful for similar reasons to unit tests.

There are no comments on this comment yet.