Test your Go code with Testcontainers
eldr-io eldr-io
1.17K subscribers
3,031 views
0

 Published On Apr 20, 2024

#coding #golang #programming #testing #tutorial #testcontainers #mysql

In this video we will be looking at one of my favourite integration test virtualisation frameworks: testcontainers - and how to use it with Go. We programmatically spin up a MySQL database and configure it, all within Golang tests and connect a simple example MySQL database client to it.

Testcontainers is an open source framework for providing throwaway, lightweight instances of databases, message brokers, web browsers, or just about anything that can run in a Docker container.

https://testcontainers.com/

show more

Share/Embed