Chapter 14Test-Driven Development

images/execution/tdd/intro.jpg

You’re stuck. Stumped. You’ve been staring at one particular piece of code all day, and you just don’t know how to break it down or even where to begin.

You wish you could code like Eric.

There is something about his code. It just seems to work. Whenever you use any of his code, it’s like he has read your mind. Everything you need is right there—backed by a full suite of automated unit tests.

How does he do it? What’s he doing that you’re not?

Growing frustrated but realizing you need help, you finally muster up the courage and head over to Eric’s desk. “How do you write such good, clean code?”

“Easy,” ...

Get The Agile Samurai 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.