Test your Go code with Testcontainers

  Переглядів 3,033

eldr-io

eldr-io

15 днів тому

#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.
testcontainers.com/

КОМЕНТАРІ: 16
@eldr-io
@eldr-io 13 днів тому
The repo for the code in this tutorial is here: github.com/sigrdrifa/testcontainers-go And the editor I use is Neovide (neovim), the config is here: github.com/sigrdrifa/nvim thanks for watching!
@user-hi3dj6wh7d
@user-hi3dj6wh7d 13 днів тому
you save my time. been thinking abt this since a day. thanks a lot. looking forward for more such videos to test for kafka messaging and AWS based testing too for Go
@aldrickdev
@aldrickdev 9 днів тому
wow this is awesome!! thanks for sharing
@afsdab
@afsdab 13 днів тому
Great video, I saw this tool in another blog posting and I have no idea what this tool does even after seeing the site hahah. Thanks for clarifying
@coffeeintocode
@coffeeintocode 13 днів тому
Great! Never seen this before so thanks a lot
@Nonsense116
@Nonsense116 11 днів тому
I feel like this is a very complicated alternative to mocks, which are already an anti pattern.
@GoWithAndy-cp8tz
@GoWithAndy-cp8tz 12 днів тому
Thanks a lot. It was inspirational to me. Cheers ! I've already subscribed your channel.
@luizfernandopereira5120
@luizfernandopereira5120 12 днів тому
Even though its simplifies the spin up of depencency services in containers still a requirement to have docker runner to do it, so we are replacing a docker-compose.test like file with something that can be programatically created for each scenario. Sounds a great solution but I dont know exactaly how it would behave into a Ci/CD pipeline, if all of this containers would allocate a lot fo memory or space or even not shut down correctly causing currency problems.
@user-hi3dj6wh7d
@user-hi3dj6wh7d 13 днів тому
may i know the editor you are using? also can i request for the github repo or gist of the codeyou have done in this video?
@eldr-io
@eldr-io 13 днів тому
The repo for the code in this tutorial is here: github.com/sigrdrifa/testcontainers-go And the editor I use is Neovide (neovim), the config is here: github.com/sigrdrifa/nvim
@avi7278
@avi7278 12 днів тому
Are we supposed to believe that's really you in the profile and thumbnails? lolll
@filiplaubert5001
@filiplaubert5001 12 днів тому
It's an AI for sure :D, different chair in every thumbnail.
@avi7278
@avi7278 8 днів тому
@silaspy-ff2ne it's obviously not even a girl, it's some dude using a voice changer and AI tatas for clicks. weird. enjoy, if that's your kinda thing.
@NeverTrust298
@NeverTrust298 12 днів тому
nice try fed you can't hide behind a coding girl persona on youtube!!!
@schwarzarbyter
@schwarzarbyter 2 дні тому
how pathetic
Mock Web APIs with Testcontainers in Go
20:17
eldr-io
Переглядів 1,5 тис.
Level 1 to 100 Mystery Buttons
00:46
A4
Переглядів 6 млн
PyTest • REST API Integration Testing with Python
37:24
pixegami
Переглядів 68 тис.
Understanding an OPEN source codebase LIVE
29:40
Harkirat Singh
Переглядів 58 тис.
Bash Scripting on Linux (The Complete Guide) Class 02 - Hello World
17:24
Learn Linux TV
Переглядів 132 тис.
This Will Make Everyone Understand Golang Interfaces
21:03
Anthony GG
Переглядів 37 тис.
React Testing for Beginners: Start Here!
1:17:14
Programming with Mosh
Переглядів 49 тис.
MOST Popular Go Framework: Gin (and why you should NOT use it)
17:01
Golang Dojo
Переглядів 47 тис.
The standard library now has all you need for advanced routing in Go.
13:52
CONCURRENCY IS AN ILLUSION?
16:59
Core Dumped
Переглядів 66 тис.
Java Unit Testing with JUnit - Tutorial - How to Create And Use Unit Tests
21:35
How to create your Golang APIs from now on with v1.22
12:51
''Бесплатные умные'' домофоны для глупых людей. За чей счет банкет?
12:48
Вадим Шегалов.Оккультные игры элиты
Переглядів 31 тис.
Broken Flex Repair #technology #mobilerepair
0:55
ideal institute aligarh
Переглядів 16 млн
Как должен стоять ПК?
1:00
CompShop Shorts
Переглядів 655 тис.
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Переглядів 5 млн