Keploy Blog Website

  • SCRAM Authentication: Overcoming Mock Testing Challenges

    SCRAM Authentication: Overcoming Mock Testing Challenges

    by

    in

    In the vast landscape of cybersecurity, authentication stands as the guardian of digital fortresses, ensuring that only the right individuals gain access to sensitive information and services. Imagine you’re at the entrance of a top-secret facility, and you need to prove your identity to the security personnel. In the digital realm, this is precisely what…

  • Choosing the Perfect Message Queue: Factors to Consider

    Choosing the Perfect Message Queue: Factors to Consider

    by

    in

    Not long ago, I was handed a problem that’s no stranger to the world of programming: making asynchronous threads communicate effectively within the same process. Given the widespread nature of this issue, I expected to find an existing solution to resolve it. My search led me to the concept of message queue, which seemed promising…

  • Managing Go Processes

    Managing Go Processes

    by

    in

    Introduction: The Challenge of Managing Blocking Processes While working on an application that required executing a command to run a blocking program, such as a TCP/HTTP server, I encountered an interesting challenge. I needed a way to stop the application and its child processes when a signal was sent to the main program, such as…

  • How I simulated a response from a Third Party app

    How I simulated a response from a Third Party app

    by

    in

    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…

  • Getting code coverage data for each request coming to a python web server

    Getting code coverage data for each request coming to a python web server

    by

    in

    In this blog, we will demonstrate how to get the code coverage data for each incoming request on a python web server built using any web framework. What is Code Coverage ? Code coverage is a metric used in software testing to measure the extent to which the source code of a program has been…

  • Why I Switched to Table Driven Testing approach in Go

    Why I Switched to Table Driven Testing approach in Go

    by

    in

    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…

  • A Guide to Canary Testing: How It Works, Benefits, and Importance

    A Guide to Canary Testing: How It Works, Benefits, and Importance

    by

    in

    What’s Canary Testing? Canary testing is a deployment strategy where a new release is rolled out to a small subset of users before a full launch. Similar to miners using canaries to detect danger, this method helps identify bugs, performance issues, or risks early without affecting all users. Typically, about 5% of traffic is routed…

  • Mock vs Stub vs Fake: Understand the difference

    Mock vs Stub vs Fake: Understand the difference

    by

    in

    Introduction Testing software is like putting it through a series of challenges to make sure it’s tough enough for real-world use. Whether we’re testing each piece individually (unit testing) or how they all work together (integration testing), we need to be prepared for different situations. Sometimes, testing is tricky.There are times, when we need to…

  • Writing test cases for Cron Job Testing

    Writing test cases for Cron Job Testing

    by

    in

    Understanding Cron Jobs: A Quick Recap Cron is a time-based job scheduler in Unix-like operating systems. It allows you to schedule tasks (or jobs) to run at specified intervals. Now, let’s get down to business – testing these Cron jobs to make sure they’re doing what they’re supposed to do. How can you be certain…

  • Improving Code Quality and Accelerating Development

    Improving Code Quality and Accelerating Development

    by

    in

    Introduction In the fast-changing world of software development, teams struggle to maintain good code quality while shortening development schedules. Continuous Testing (CT) in CI/CD pipelines stands out as a powerful strategy. It allows teams to weave testing directly into their development workflow, offering quick feedback and stronger quality assurance. This article delves into Continuous Testing’s…