Archive for March, 2009

Testability Guide

testing Miško Hevery works at Google and is responsible for maintaining a culture of automated testing. He has recently published a Guide to Writing Testable Code. It is available on his site and as a pdf download. Besides making code more testable, I believe that the guidelines also represent coding best practices in general and I urge you to get a copy of the guide.

I first discovered Miško through Google’s Clean Code talks. My favourite talk is the one on Inheritance, Polymorphism & Testing:

 

Here are the others…

Unit Testing:

 

Don’t Look For Things:

 

Global State and Singletons:

 

 

Photo Credit: Matthew Venn