Testing is not a phase!

It used to be. Somewhere, squeezed between the end of development and release. But then things changed, because they had to. We’re testing product ideas, way before there’s one line of code. We’re testing the code as it’s being written,… Continue Reading…

Unit Testing Error Handling and Exceptions

One of the things that unit tests are best for is checking error conditions. While we want wider coverage of full happy flows, error conditions are sometimes hard to simulate in a big system, and unit tests excel at minimal setup to… Continue Reading…

InfoQ Interview on Test First Approaches

My interview on InfoQ about “Test-first approaches with TDD and BDD” is live. Go check it out. And come to the Agile Practitioners conference to experience these things yourselves!

TDD: Speed and Flow

Kevlin Henney asked once: Why do cars have brakes? Imagine if cars didn’t have brakes, how fast would you go? You’ll be driving really slow to not hit anything. But by giving the capability to slow down, brakes actually give… Continue Reading…

TDD: It’s Not That Simple

TDD is pretty simple right? Obey the red-green-refactor step-by-step and you’re on your way to glorious, non-legacy code. It’s really easy to explain. The rules are easy to follow. Why then so few people actually do it, and when they… Continue Reading…

How Can I Write A Test If The Code Is Not There?

Introducing TDD is a lot more psychological than you think. When we start introducing TDD we need to think about how people new will react. For example, the first question that people ask is: How am I going to write… Continue Reading…

The Ugly Truth About Emergent Design

If the 2nd D in TDD is design, then we’re talking about emergent design. The tests drive the design, which emerges from thin air, and step by step reveals itself in all its glory. Emergent design has got to be… Continue Reading…

Stairway to Heaven

Whenever we learn a new skill, and go deeper, it feels like we’re climbing a stairway to mastery. A few years ago, I described how people get into unit testing, and their journey along the path, as walking up a… Continue Reading…

The Economics of Unit Testing

Unit testing is a set of skills, that rarely appears on a resume. When I saw a resume with unit testing on it, it rose up to the top of the interview queue. I understood the person who put it… Continue Reading…

Unit Test Attribute #10 – Isolation

This is last, final, and 10th entry in the ten commandments of unit tests attributes that started here. And you should read all of them. We usually talk about isolation in terms of mocking. Meaning, when we want to write… Continue Reading…

Copyright Gil Zilberfeld, 2025