Re:"Joel Spolksy is wrong about my work" - Kent Beck
by akkartik on Wednesday February 04, 2009 @02:32AM
(#465394)
In this sort of situation test coverage is actively harmful. You want to write lots of tests at a fine grain, and only test 'happy paths' above that level of abstraction.
When I layer my tests I rarely end up with thrashing tests. Multiple tests often fail, but it's easy to figure out which test to focus on. And fixing the right test case fixes them all.
Even if it makes sense to write a test for menu placement, it rarely makes sense to write more than one.
When I layer my tests I rarely end up with thrashing tests. Multiple tests often fail, but it's easy to figure out which test to focus on. And fixing the right test case fixes them all.
Even if it makes sense to write a test for menu placement, it rarely makes sense to write more than one.