Jagsjagannath.dev·Sep 18, 2024Mastering API Testing: A Comparison of HAR Files and Mocking TechniquesWhen testing API interactions, you have two primary options: using HAR (HTTP Archive) files or mocking. Each method has its strengths and weaknesses, and the choice between them depends on your specific testing needs. Use HAR Files for: Complex, mul...DiscussPlaywrightMocking
Jagsjagannath.dev·Sep 18, 2024Mastering Playwright: Learn secure HAR-Based Mocking in PlaywrightTo start, you'll need to record all necessary network calls into a HAR (HTTP Archive) file. The process for doing so varies slightly depending on the browser you're using. Next, you'll want to sanitize your HAR file to remove any sensitive informatio...DiscussPlaywrightplaywright
Simon Crowesimoncrowe.hashnode.dev·Sep 7, 2024Python Testing Part 1: isolating external calls and minimising mocksMocks are a necessary evil in Python testing. If overused, they essentially become "change detectors", meaning that every time you refactor the implementation of your code, you must update the mocks too. Ideally, your tests should verify what your co...DiscussPython
Marwane Chahoudmar1.hashnode.dev·Aug 20, 2024No Data, No Problem: Ingesting FAKE Data Might Increase Your Productivity 🚀🚀🚀Introduction Whether you join a data engineering project or start one from scratch with a team, you will surely face many problems. One common issue, which can sometimes be a major obstacle, is missing data! In a real-world project, your team often d...Discuss·10 likesdata-engineering
Chetan Patilchetanppatil.hashnode.dev·Jul 28, 2024Level Up Your Node.js Testing with Native Test Runner and Mocks: A BigQuery ExampleIn today’s software development, testing is not just good practice, it’s necessary, in my opinion. I’m excited to share some valuable insights on testing in Node.js! Through my own experiences, I’ve discovered some practical tips and techniques that ...DiscussNodeNativeTestRunner
Mehdi Jaimehdijai.hashnode.dev·Jul 26, 2024Create Authentication system with NodeJS, ExpressJS, TypeScript and Jest E2E testing -- PART 4.GitHub Repo Part 1 Part 2 Part 3 Part 4 Testing We will implement End-to-End testing with Jest to test our API. We will test the email tokens as well, we will need those tokens to be able to test the API completely. For the testing we will use...DiscussNodeExpAPINode.js
Mohit Bhattcodymohit.com·Jul 10, 2024Mocking APIs: How to Simulate Backend Responses for TestingEver got stuck trying to test your app coz the backend aint ready? Or maybe the API you're depending on keeps acting up? Trust me, we've all been there. In this blog, we're diving into the world of mocking APIs – yep, you heard it right! We’ll uncove...Discussmocking api
jorzeljorzel.hashnode.dev·Jul 5, 2024How to Mock HTTP Servers with Prism and OpenAPI specsDistributed systems often rely on various dependencies that communicate using HTTP REST APIs. However, there are instances where we don't have access to the codebase of these services, or they are third-party systems. In such cases, we need a way to ...Discusshttp
Sushil Tiwarisusilnem.hashnode.dev·Jun 19, 2024Python Unit Testing: MockingMocking means replacing real objects with pretend ones during testing, especially in unit tests. This technique lets to create different scenarios without using real resources, which saves time and effort. The Mock() object from the unittest.mock cla...Discussmagicmock
Daniel Adesojidanieladesoji.blog·Jun 15, 2024Mocking with Sinon.js: A Comprehensive GuideTesting is an integral part of software development, ensuring that code behaves as expected. When it comes to JavaScript, Sinon.js is a powerful library for creating spies, stubs, and mocks, making it easier to test code that relies on external depen...DiscussNode.js