Tutorial - 3 | Increase Code Coverage | Automate Regression Testing with Unlogged.io

Опубликовано: 05 Сентябрь 2023
на канале: Unlogged
285
2

Are you ready to take your regression testing to the next level? In this third installment of our tutorial series, we're diving deep into the world of automated regression testing with Unlogged.io.

🔍 Track Code Coverage in Real Time

In this tutorial, we'll show you how to track code coverage in real time using Unlogged.io. We'll walk you through a practical example, demonstrating how relevant code paths are traversed and highlighted.

📋 Demo code and what it does:

We'll dissect a method called `filterEligibleCustomers`, which operates on a list of `CustomerProfile` objects and a boolean parameter, `asiaFlow`. Discover how it filters and returns eligible customers based on specific criteria. Learn how the bonus calculation works based on referral codes and addresses, and how the function `CalculateScoreForCustomer` comes into play. Understand the significance of cutoff values like ASIA_CUT_OFF and INTERNATIONAL_CUT_OFF.

👁️ Visualize Code Execution

Watch as we execute the function with Direct Invoke, with different inputs for `asiaFlow`. See how Unlogged.io highlights the traversed code in cyan. Witness the potential increase in code coverage and explore the tools to save your replay.

🚀 Boost Your Development Workflow

Unlogged.io empowers you to instantly identify and manage technical debt by highlighting code execution. It's a boon for developers seeking efficiency and precision in their testing process.

🧪 Upcoming: Mocking During Replay

In our next video, we'll show you how to implement mocking while replaying, even when downstream services, external APIs, or database connections are unavailable. Stay tuned for this essential technique!

👩‍💻 Join Us on this Journey

Whether you're a seasoned developer or just getting started, Unlogged.io is your ally in regression testing. Together, we'll elevate your coding and testing skills.

🎉 Cheers to Better Testing!

Join us on this journey to streamline your regression testing workflow and optimize your code coverage. Hit that subscribe button and ring the notification bell so you don't miss our next tutorial.

Happy coding, and let's make testing smarter with Unlogged.io! 🚀