Rod Howarth just pointed out an interesting AUGI thread on unit testing in Revit. I asked Daren Thomas, author of the Python Shell, for his view, which I find illuminating, and which you can enjoy now as well: Unit Testing Revit Plugins.