The Testability Explorer Blog
By Thomas Johnson | July 8, 2009
We are going to start doing test driven development at my work. So I’ve been looking at ways around the problems that I’ve previously encountered when trying to write unit tests. Most of these problems centre around not being able to isolate the logic that I want to test. Often there are large amounts of objects to setup first and quite often database fields are required as well.
I’ve found Misko Hervery’s testability blog to be quite useful for understand these problems and finding some solutions. The following articles are good starting points:
Top 10 things which make your code hard to test
Topics: Coding Style, unit testing |