anything to add to it?
"Test the common case of everything you can. This will tell you when that code breaks after you make some change (which is, in my opinion, the single greatest benefit of automated unit testing).Test the edge cases of a few unusually complex code that you think will probably have errors.Whenever you find a bug, write a test case to cover it before fixing itAdd edge-case tests to less critical code whenever someone has time to kill."
I think that testing all the documented cases, all the things you support, is a good idea
"unusually complex" code demands more intensive analysis IMO
Обсуждают сегодня