Quick Edit a Wiki PageTikiwiki AssistantThank you for installing Tikiwiki!
|
ATestDoubleDilemma
I'm conflicted and confused about test doubles. Here's a brief history of my life with with them:
There are wonderful things about enforcing complete class-level isolation: extremely fast execution (typically 1ms per test with Dingus); easy to test legacy classes without their dependencies; no penalty for "turtles all the way down"/"wishful thinking" style of design. But it seems that we pay for this with much more expensive refactoring. After reflecting on all of this, I asked a bunch of experienced TDDers for advice and basically got every answer in the spectrum from "I double everything" to "I almost never use doubles." So, I'm confused. How can there be so little consensus on something so important? I feel like I must be missing something! Created by: garybernhardt Last Modification: Tuesday 06 of October, 2009 12:41:48 PDT by garybernhardt |
LoginOnline users
2
online users
RSS Feeds |