Tag: unit-testing
-

Why do I need a unit testing tool?
You could probably meet the deadlines and test the logic behind every LOC. When dealing with a function that incorporates multiple logic paths and various edge cases, the traditional approach of cluttering the function with numerous assert statements for different scenarios can lead to code bloat. This not only makes the code harder to read…
-

How to Do Java Unit Testing Effectively
Java unit testing is a process used by developers to test individual components of a Java application. It helps ensure that each piece of code, or unit, functions correctly on its own. By isolating each unit testing it independently, developers can identify and fix issues early, improving the overall quality of the application. So, are…
-

Creating the Balance Between End-to-End and Unit Testing
In the dynamic landscape of software development, the approach to testing has evolved significantly. One of the debates that often surfaces is the choice between end-to-end (E2E) testing and unit testing, particularly when it comes to testing in a live production environment. In this blog, we’ll explore the rationale behind Testing in Production and why…
-

Getting Started with Keploy
Keploy is an open-source API testing platform that records real API interactions and automatically converts them into test cases and data mocks – no manual test writing required. Learn how to set it up natively on WSL with a Node.js/Express/MongoDB sample app: installing the binary, capturing test cases from live API calls, and running them…
-

Unit Tests vs. End-to-End Tests: Which One Should You Prioritize?
There is often a philosophical debate about whether to write a unit test or an end-to-end test. This has been a common question I have encountered many times – when limited in time and resources, what kind of testing should be done? Weighing up such factors can be difficult, especially given that usually only one…
-

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

Simplifying JUnit Test Stubs and Mocking
What’s the first thing that comes to your mind when you hear "mocking"? Is it an expression when you laugh by making fun of something? Well, If yes, don’t worry you are not alone as I thought the same initially. But, with time I understood the meaning of mocking concerning testing. So, let’s unfold the…
-

What is unit testing anyways?
Introduction Unit testing is a technique that emphasizes testing a particular piece of code. It is mainly done to check the functionality of a block of code, that is, to confirm the code does what you expect it to do. But does that mean we have to test every functionality individually? An application has numerous…
-

What is Mocha and keploy Testing?
Hello developers! I hope you are all enjoying the process of writing test cases. Let out a sigh of relief. No matter what type of application is being developed, it should always be tested before being released. Testing frameworks such as Jest, Jasmine, QUnit, Karma and Cypress are just a few of the many options…