News for hackers. Stuff that matters.
Re:Extreme Programming, a Reflection by ollysb on Wednesday December 18, 2013 @11:58AM (#6928697)
One of the biggest problems I find with people adopting TDD is that they create one test per class. This was never the intention. The idea was that you test units, which may be a single class but equally may also be an aggregate made up of smaller classes. Tests should pin down external behaviour without overly restricting internals. Mocking at every class boundary leads to brittle tests suites that aren't focused on APIs, not to mention being a PITA to refactor.

There are no comments on this comment yet.