The Easiest Way to Run Integration Tests with Docker and Testcontainers

preview_player
Показать описание


Timeline
00:00 Introduction
01:07 The project
02:21 Setup integration tests
03:30 Start app with TestContainers
07:16 Writing test specs
09:04 GitHub action workflow
10:08 Wrap Up

Find me online
Рекомендации по теме
Комментарии
Автор

This video should have more views. This is a great content!

ricardocastanho
Автор

Thanks! I was having a hard time finding good implementations for this.

napoleonicmusic
Автор

Thanks for your content! It gave me a new approach to integration tests. One of the tradeoffs of putting everything inside test containers is that you cannot mock some dependencies. Maybe you want to test with your database integration but without email integration with the SMTP server. So I prefer to only use the containers for the database or for any dockerizable external dependency that you want to integrate into your testings.

mauriciodalgalarrondo
Автор

Thanks for the video! I am trying to setup a bun environment, do you know if there is a problem about it? It says that undefined symbol: node_module_register...

TheFJS
Автор

It was a really helpful video, thanks a lot!

rauIkat
Автор

This is very neat approach. Not sure if it's better than starting container and running test inside, but still noteworthy 👍

xBlisxs
Автор

why didn't you use your docker-compos to setup the container?

ykhatat
Автор

what is the advantage of using testcontainers package instead of just running tests inside app container with docker-compose run?

markokraljevic
Автор

Hi florian, can you please make similar video using Jest also covering some unit tests as well

in-housecoding