For the Best Test free webinar by Gil Zilberfeld TestinGil

Unit Test, API Test, Web Test: “The Best Test” Recording

This webinar has started out with a common topic I discuss in my workshops: Test types. People always want to know about what is a unit test vs. component test. But it goes deeper than that. Everybody knows what an… Continue Reading…

Should I Change My Code For The Unit Tests?

I don’t get tired of hearing that question, because if I did, I’d need to sleep for a couple of years. It usually comes up with unit tests, as developers prepare to test their day-old or year-old code. That question… Continue Reading…

“Unit Wars: JUnit vs TestNG” Webinar Recording

Yup, just in time for the holidays! Here’s the recording of the test framework webinar. While I’m going through feature comparison (leaving the basic ones) I’m putting more emphasis on how the features serve us, the meager uses. Oh, and… Continue Reading…

“Creating a Unit Testing Strategy” Video from Agile Prague 2016

Agile Prague was great. You can check the slides here. And now the video.

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…

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…

The Power of Testability Compels You (Not)

Once more I get into a training session on unit testing, and once more I hear “It feels wrong to change my code just for testability.” My immediate reaction was “because the design you have right now is so good,… Continue Reading…

Unit Test, System Test, Red Test, Green Test

We tend to categorize different types of tests according to what they cover. Unit tests cover small portions of code, usually a method or a class, while we mock the rest of their interaction. Integration tests cover several components in… Continue Reading…

Gil Zilberfeld points to one of the refactoring patterns in unit testing and unit tests that makes legacy code more testable.

Legacy Code to Testable Code #6: Add Overload

This post is part of the “Legacy Code to Testable Code” series. In the series we’ll talk about making refactoring steps before writing unit tests for legacy code, and how they make our life easier. Other posts include:   In… Continue Reading…

Copyright Gil Zilberfeld, 2025