Re:Thoughts on Developer Testing
by StrawberryFrog on Thursday February 05, 2009 @07:44AM
(#467687)
You say "corrupt", others would say "decouple" or "improve"
Well by "corrupt" I mean to alter it from its original form or intention. Probably not the best choice of words I must admit.
"Decoupling" is a very useful tool. I think Joel's point of view was that unit testing often takes it to an extreme where the work to manage it outweighs the benefits. I personally don't agree with him. I think the benefits are too great to ignore. But I can certainly empathize with where he's coming from.
Having said all that, I would be loathe to give up all my regression tests. The freedom I have to change major parts of the program knowing I have all the tests watching my back is invaluable. As is the benefit of being able to codify my hard won knowledge about edge cases and the like which I'm bound to forget and lose track of.
I just wish I didn't have to give up a more natural coding style to get the benefits of unit testing. Perhaps a language designed from the ground up to support unit testing is the answer?