Test-Driven Development is usually illustrated on simple, small examples, which might give the impression that it's a technique that doesn't apply well to more complex scenarios. In this article, I want to show how TDD works not on a synthetic example like a kata, but on an actual production bug that I encountered at my day job.
This week, I've released version 1.4.1 of Specnaz, my Java and Kotlin testing library. In the article, I explain in depth the bug that caused the patch release, and how was it fixed - including an interesting discussion on dependencies vs. duplication.
After many years of the website having the same familiar, unremarkable style, the blog finally got a well-deserved makeover!
All articles »