Re:Good code needs few unit tests
by nostrademons on Saturday March 20, 2010 @04:04AM
(#1206163)
But "unit tests per line" is a good metric. Why? Because programmers (well, at least I) hate writing unit tests. If you have a high unit-tests-per-line ratio, then writing one fewer line of code will let you avoid writing several lines of unit tests.
The easiest way to bump your unit-tests-per-line metric is to delete lines of code. That's a positive thing, in my book.
The easiest way to bump your unit-tests-per-line metric is to delete lines of code. That's a positive thing, in my book.