Sanjeevi SubramaniforLKG for ITlkgforit.com·Mar 1, 2024Mockoon an user-friendly Tool for Mock Api creation to test an API or WebsiteCreate mock APIs in seconds Mockoon is the easiest and quickest way to design and run mock REST APIs. No remote deployment, no account required, free and open-source. Link for tool - Create mock APIs in seconds with Mockoon API mocking that saves you...Discuss·27 readsMock Api Server
Nada Pivceviccodingdiaries.hashnode.dev·Feb 15, 2024Jest Unit Testing - Part 2Route Handlers I created a simple route handler to retrieve latitude and longitude from an address, using Google's Geolocation API. Remember, route handlers in Next.js allow you to create custom request handlers for a given route, and they are always...DiscussJest testing challengesroute handler
Nada Pivceviccodingdiaries.hashnode.dev·Feb 14, 2024Jest Unit Testing - Part 1While unit-testing my app, I got stuck while trying to mock a few external libraries. I list them here in case someone else runs into similar issues. In this first post of the series, I'll start with testing the auth middleware by learning how to moc...DiscussJest testing challengeshigh order functions
Peter Merrillpeterm.hashnode.dev·Feb 14, 2024Testing Without the Tears: How Mocking Boundaries Can Strengthen Your TestsWriting robust tests is a crucial line of defense for building high-quality software. However, external dependencies like databases, file systems, and even time itself can transform the testing process into a battlefield. They introduce complexity, s...Discuss·30 readsTesting
HAMZA BRAIMIbraimi.hashnode.dev·Jan 19, 2024🛠️ Mastering Unit Testing with Mockito and JUnit5! 🚀When you're creating a Java application, ensuring it works as expected is crucial. This is where JUnit testing comes in. JUnit is a unit testing framework for the Java programming language, playing a crucial role in test-driven development (TDD) to e...Discuss·42 readsMockit
Pranav Masekarsungod.hashnode.dev·Jan 14, 2024Mastering Mocks: A Deep Dive into Unit Testing with DartIntroduction Welcome to the second part of the Unit Testing series in Flutter. Previously in the first part we discussed the basics of Unit testing and real life problems. This second part will be focused on Mocking custom classes for effective testi...Discuss·1 like·228 readsFlutterDart
Colin J Lacycolinj.hashnode.dev·Dec 19, 2023Advanced Testing for Golang RESTful EndpointsIn my last post, I took a look at how to test simple REST handler functions - functions that be tested by passing mock request and response pointers, without relying on the RESTful library to do a lot of heavy lifting. This time, I'm going to dive in...Discuss·91 readsunit testing
Colin J Lacycolinj.hashnode.dev·Dec 15, 2023Unit Testing Simple REST Handler Functions in GolangOne of the hardest things to unit test has always been HTTP endpoints. Over the years, I've thought up some creative ways to do so, some of which I'm not proud of. When we add open-source RESTful libraries into the equation, things become even harder...Discuss·80 readsunit testing
Ben Tillingbentilling.com·Dec 15, 2023A Practical Guide to Mocking Svelte Stores with VitestI'm using Svelte stores in this post as an example, but the principle applies to any function or variable you want to mock with vitest, with any js framework. Imagine this... You've just refactored some complex code into a killer custom Svelte store...Discuss·465 readsvitest
Colin J Lacycolinj.hashnode.dev·Dec 12, 2023Mocking Imported Libraries in Golang Unit TestsIn my last post, I covered mocking using interfaces. In this one, I'll take that a step further and show how we can ensure that we're able to mock every imported lib in our tested functions by using private variables. tl;dr: you can check out a repo ...Discuss·69 readsunit testing