“TDD For The Rest of Us” Slides

Had a great time presenting the “TDD for the rest of us” to testers. Great crowd, and great questions. Here are the slides. [slideshare id=62169180&doc=tddfortherestofus-160519043211]

New Version of “Everyday Unit Testing”

That’s right! It’s been a while, but lots of content going into the new version, which you can download right now. What’s added? Two new chapters: Testing strategy – how to think about testing (and unit testing) a feature. TDD… Continue Reading…

Legacy Code to Testable Code #13: The Testable Object

Other awesome posts in the series: If the code we want to test is highly-decoupled from its dependencies, we probably don’t need to do anything to it. But when we have a medium-big ball of mud things change. There are… Continue Reading…

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…

Error handling: Checking for exceptions

When we talked about understanding what we’re actually testing in error handling, we talked about the ability to understand the behavior of our code-under-test . Just to recall, here are the three types of error implementation, and what we can… 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!

Legacy Code To Testable Code #12: Instance Constructors

Other awesome posts in the series: So we talked about static constructors and how to go around them. How about instance constructors? Are they innocent or guilty of the same crimes as their static brothers? I think Java got the… Continue Reading…

Legacy Code to Testable Code #11: MOAR Static Constructors

The other posts in the series: Where we last left off, we discussed how to dismantle the static constructor (or initializer) booby traps. And I promised you an example. I’ll do that in C#, but the operations apply to any… Continue Reading…

Legacy Code to Testable Code #10: Getting Rid of Static Constructors

Here is the rest of the gang: This time we’re going to tackle the most problematic issue in testing object-oriented languages. Obviously because constructors only exist in those, but also, because even power tools have problems handling them. But we’ll start… Continue Reading…

Copyright Gil Zilberfeld, 2025