Tag: unit-testing

  • A Guide to Testing React Components with Jest and React Testing Library

    A Guide to Testing React Components with Jest and React Testing Library

    Testing is checking if your code works the way it’s supposed to. When you write a program, you have an idea of what it should do. Testing is the process of making sure it does that. It’s like double-checking your work. In this article, we’re diving into the world of React testing using two powerful…

    by

    in
  • Why Traditional API Testing Fails? Comparing Shadow, Production, Replay Techniques

    Why Traditional API Testing Fails? Comparing Shadow, Production, Replay Techniques

    I want to share the story of how our team at a fast-paced startup tackled the challenge of API testing without any dedicated QA team, the roadblocks that we encountered, and how we ultimately addressed these issues. Baseline Challenge We had 15-day sprints including mandatory unit and API testing. Initially, we relied on automated testing.…

    by

    in
  • Why I Switched to Table Driven Testing approach in Go

    Why I Switched to Table Driven Testing approach in Go

    Unit Testing, specifically table driven tests, have gained significant popularity in recent years due to their ability to eliminate repetition and enhance test clarity and maintainability. By organizing test cases into a structured format, table driven tests provide a systematic way to reuse the same values across different unit testing scenarios efficiently. What is Table…

    by

    in
  • Why do I need a unit testing tool?

    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…

    by

    in
  • How to Do Java Unit Testing Effectively

    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 and testing it independently, developers can identify and fix issues early, improving the overall quality of the application. So,…

    by

    in
  • Creating the Balance Between End-to-End and Unit Testing

    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…

    by

    in
  • Getting Started with Keploy

    Getting Started with Keploy

    Introduction This is the age of "Automation". And We, Developers, always try to automate boring tasks! One of those boring tasks is Testing APIs by making API calls and checking if the response is right or not. But Keploy Solves this Problem pretty well. So in this article, getting started with Keploy, How it works,…

    by

    in
  • E2E Test 101 Guide: Beyond Unit Tests for Full Coverage

    E2E Test 101 Guide: Beyond Unit Tests for Full Coverage

    There is often a philosophical debate about whether to write a unit test or an e2e test 101. 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…

    by

    in
  • Go Mocks and Stubs generator Made Easy

    Go Mocks and Stubs generator Made Easy

    Testing network stuff like APIs and database calls can be a real pain: I find myself burning way too much time just making mock data, instead of actually doing the tests or assertions. When you make fake mocks, you might end up using wrong guesses or data that’s just too unreal or vague. When things…

    by

    in
  • Simplifying JUnit Test Stubs and Mocking

    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…

    by

    in