Enhancing Go Integration Tests with Recorder/Replayer

Introduction When developing an application, it’s common to integrate it with third-party services, APIs, and external systems. Testing the integration is a crucial step in ensuring the reliability and correctness of your application. In the Go programming language, you can utilize the built-in net/http/httptest package to test HTTP client/server interactions. While this approach is straightforward, it may not accurately capture real-world interactions or handle complex scenarios involving external services. In this article, I am introducing you to a powerful testing strategy for interacting with third-party servers....

September 19, 2023 · 8 min · Damiano Petrungaro

Go internals - Testing t.Log

This post talks about the internals of the testing package. I am releasing a series of articles to dive deep into the internals of a few packages. If you are interested, I’ll post their release on Twitter and LinkedIn . Internal of the testing Log API Every time in a test we use the Log API from the T type, part of the testing package, what happens behind the scene is more complex than you may think....

January 23, 2023 · 6 min · Damiano Petrungaro

Testing in Go - [Internal] MessageBird 2020

Slides

November 19, 2020 · 1 min · Damiano Petrungaro