Chapter 15. Test-driven Development—Mockist Style

The kind of test-driven development that was presented in the prior chapter will get us far, but truth be told, there are situations in which it’s hard to apply. Many developers work with large enterprise systems—often much larger than necessary due to overinflated design and accidental complexity—composed of several layers. Test-driving a new feature starting at the boundary of an enterprise system using the techniques we’ve seen so far is challenging, even for seasoned TDD practitioners. This type of complexity is also demoralizing to those who are just beginning to learn test-driven development.

A Different Approach

Let’s say that we’ve been tasked with implementing a simple web service for ...

Get Developer Testing: Building Quality into Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.