Archive for Unit Testing

25 May 2006

So You Wanna Write A Unit Test

No Comments Unit Testing

Russ Olsen has posted on five great tips of writing unit test. I am entirely agree with Russ on second tip “Silence, please”, that good unit test should respond only giving results like “will it work or not?”. Answer in straight “Yes” or “No” is more relevant to me than proving all kind of junk information from unit test. And if a unit test says “No”, I can further debug the code and find where the problem is.