The Tests Were Green - the Notification Had Never Been Sent, Not Once
The code that enqueued jobs had been failing every time since day one. The error was swallowed, and the tests stayed green thanks to a mock. The story
Tag archive
The code that enqueued jobs had been failing every time since day one. The error was swallowed, and the tests stayed green thanks to a mock. The story
The Swift testing ecosystem has long been dominated by traditional mocking frameworks that rely on...

Introduction Writing tests can often feel like a daunting task, especially when you find...
Let's say you're conducting an API test. In this process, you'll be running through a series of...

Introduction In this article, I would like to share the experience I gained over the years...
Mockaco is a simple yet powerful mocking framework for .NET that allows you to easily create and...

TL;DR You can mock imports in multiple ways, all of them valid, but it's usually best to...
TD;DR: Inject dependencies instead of mocking functions. I was refactoring some React Native code...
When it comes to mocking external dependencies in Go unit tests, one of the most popular approaches i...

Photo by Veri Ivanova We all love unit tests because they help us to keep our software workable. And...
Using mocks in test development is a concept used in the vast majority of programming languages. In...
Based on Sandi Metz's very precise explanations, I will try to give you the ultimate mnemonic (if you...