The purpose of unit tests is not really to check correctness at t=0, which is low-value and can be done via other means. It is to avoid future breakages and to be able to make changes with confidence. Write your tests with this in mind.
-
-
There is no such thing as a superfluous test. You are testing against unknown unknowns. Against the far future. Against other people. Etc. You should never make any assumptions about what needs testing and what doesn't.
Show this thread -
The return-on-investment of a unit test only goes up as a function of time elapsed and number of changes made. For a long-running project, it's the most valuable code you will ever write.
Show this thread
End of conversation
New conversation -
-
-
Duty Now For the Future In so many things, Mothersbaugh saw...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
The problem is not the 100% test coverage but what the people do to follow that policy such us wasting time in test that are not necessary or, what is worse, perform an "assertion free test" , that is, going through the code to get coverage without testing it correctly.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.