“How should we test this?”“Let’s just run it in production and monitor it closely.”— You and your coworker, probably.
Go has a robust built-in testing library. If you write Go, you already know this. In this post we will discuss a handful of strategies to level up your Go testing. We have learned from experience on our large Go codebase that these strategies work to save time and effort maintaining the code.