Tag: stub
-

Stubbing and Verifying: My Journey to Smarter Testing π
Letβs talk about stubbing and verifying – two critical tools that transformed how I approach testing. Early in my career, testing was often frustrating, slow, and full of surprises, most of them bad. I used to think testing meant running my app against real systems and crossing my fingers that everything worked. Spoiler: it rarely…
-

How I simulated a response from a Third Party app
Whether you’re building a web application, a mobile app, or any other software product, integrating with third-party APIs is almost inevitable. But what happens when you need to test your application’s behavior without relying on these external services? That’s where the magic of simulation comes in handy. In this blog, we’ll explore how you can…
-

Mock vs Stub vs Fake: Understand the difference
Mocks, stubs, and fakes are all test doubles that stand in for real dependencies, but they serve different purposes. A stub returns predefined responses, a mock also verifies how it was called, and a fake is a lightweight working implementation, like an in-memory database. Choosing the right one keeps tests fast, isolated, and reliable. Introduction…
-

Go Mocks and Stubs generator Made Easy
Testing code that talks to the network, APIs, databases, external services, is where a lot of test-writing time quietly disappears. The logic you actually want to check is simple, but standing up realistic responses for every dependency is not. This post walks through why that happens and how a Go mocks and stubs generator that…