Unit Tests Anti-Pattern: Prefixing Test names With “test”

Unless the test framework makes you use the same “test” prefix, don’t do it. It messes with separating and identifying unit tests.

Unit tests Anti-pattern – Not Asserting

You’d think that we don’t need this kind of post in our day and age, but I still see unit tests written without the assert part.

Unit Tests Anti-pattern – Asserting on Not Null

Once people understand they actually need to write an assert, this unit tests anti-pattern appears almost immediately. Checking on null is a no-no.

Creating A Unit Testing Strategy – #AgileTDMondays

Had a great time presenting this presentation at Agile Testing Days Mondays – the weekly webinar series by the awesome #AgileTD folks (that’s you Sabine!). Here’s the recording. [youtube https://www.youtube.com/watch?v=j7rS-L5CMM4&w=560&h=315]

Unit testing is part of the job

In one of my unit testing courses we had a disucssion I’ve been part of what feels like a million times. The question the team asked was: “How do you convince the client to pay for unit testing?” Because it adds… Continue Reading…

Unit Testing Anti-Pattern: Data Transformation Tests

Should we write tests for everything? Absolutely not. Tests that do not help us, cause us more pain while writing and maintaining them are waste. Here’s a common example I see all the time. We have code that translates data from… Continue Reading…

Implementing Unit Testing – Outcomes

We’ve discussed what the goals of the implementation are, and now it’s time to talk details. What do we expect to happen? When would we know we have achieved our goals? We’re looking for evidence that will tell us if… Continue Reading…

Implementing Unit Testing – Goals

In this series, I’m going to discuss the strategy of how to roll out a unit testing implementation in an organization. As we all know, most unit testing initiatives start by developers, and if they are lucky, it gets picked… Continue Reading…

“Why TDD is important for everyone” Video from Agile Greece Summit 2016

Well, the video is up. You can also check out the slides here. Great fun presenting there.

“TDD Patterns” Video from Agile Prague 2016

And here’s the video. If you want to catch the other session I did about “Unit testing strategy”, it’s here. You can find the slides here.

Copyright Gil Zilberfeld, 2025