So You Wanna Write A Unit Test

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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s