Re:The Start-Up Trap
by mattvanhorn on Wednesday March 06, 2013 @02:32PM
(#5333248)
I won't write tests for getters and setters, but then again, I try not to write getters and setters very much in the first place.
On the opposite side of the spectrum, I worked on software that processed millions of dollars in daily transactions and there were maybe 5 "tests" in the whole system. This was about 500,000 lines of C and C++ code in the early 2000's.
My personal philosophy is to write unit tests where I think it's important, not test everything.