Re:Pledging for unit tests
by ZeroGravitas on Friday October 29, 2010 @08:31AM
(#1847047)
I'm intrigued to know whether your "code, compile, check" anecdote was meant to argue for or against TDD as it could go either way.
I guess the point you're responding to meant that "eyeballing" whether something actually works is the equivalent of "estimating" a length, a couple of easy tests is the equivalent of "measuring once" and "measuring twice" is taking the extra effort to build a small suite of tests with corner cases, a small sign of having learned from bitter experience.
Of course with automated tests you are literally measuring twice (indeed, measuring many times) even as the tools and materials change out from under you.
I guess the point you're responding to meant that "eyeballing" whether something actually works is the equivalent of "estimating" a length, a couple of easy tests is the equivalent of "measuring once" and "measuring twice" is taking the extra effort to build a small suite of tests with corner cases, a small sign of having learned from bitter experience.
Of course with automated tests you are literally measuring twice (indeed, measuring many times) even as the tools and materials change out from under you.