I had to suddenly change the internals of a class a couple weeks ago. This class was responsible for sending messages to our developers through our…

February 2023

It doesn't matter!
3

November 2022

An example with code!
One of the biggest truths when it comes to developer testing is that it has to be easy! If it's not easy, we'll simply don't do it. We'll find lots of…
4
In enterprise systems, especially those that are a little distributed, a common argument against unit testing is that "in real life, most bugs occur…
3
We are all past the idea that a unit testing has to only test a single class, isolating it from all its dependencies. We can, but it doesn't mean we…
1

October 2022

In the amazing The Philosophy of Software Design, John Ousterhout argues that having large classes that implement the full expected behaviour can be…
1

August 2022

No, you would not! In fact, I would argue that focusing solely on E2E tests can actually have the opposite effect, meaning, you will find less bugs.
1

July 2022

Being able to observe the behavior of the program is key in testing. And we should make sure it is always easy to do it. In a few cases, though, the…
2
Deciding which level to write your tests is always a hard decision. On one hand, you may go for fine-grained unit testing, where you exercise one class…

May 2022

One of my favorite testing techniques is specification-based testing. I learned it more formally a bit later in my career, and since then, I feel my…

April 2022

There was an interesting discussion on Twitter a few weeks ago on whether we should use mocking frameworks or not. I asked to the author of the original…