Tag: mocks
-

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…
-

Stubs | Mocks | Fakes: Let’s define the boundaries!!
While writing tests for an application, we may fall into different scenarios, which must be considered for writing tests, that are strong enough to check the robustness of the application. Let it be Unit testing, Integration testing, or some other, we may encounter some situations where we need to isolate our implementation from dependencies or…