- Too tightly coupled to the implementation (some classic examples including abuse of mock objects).
- Unmaintainable.
- Unintelligible (especially if your using 5 mock objects at once - just don't go there).
The great thing about TDD is that you can be declarative in your tests, specifying the outcomes (dare I say behaviours?) that should occur for specific scenarios. With this shift in emphasis the tests you write will be less brittle (more agile?).
A good test should stand the test of time.
No comments:
Post a Comment