Graham Wheeler's Random Forest

Stuff about stuff

Unit Tests that Don't Suck

Introduction This post is based on a talk I gave to my team in an effort to establish a common approach to thinking about unit tests. The existing code base we had suffered from a number of problems relating to how tests were being written; despite good intentions, it can be easy to do testing badly. In particular, here are some of the things I observed: a massive overuse of dependency injection: pretty much all dependencies of all classes were being set up using DI.