Did you know that using Testcontainers you can spin up a docker container and start testing your code across a real database?
But it is not just that, you can also implement Testcontainers by following the three test isolation strategies
One Container Per Test
One Container Per Class
One Container Per Collection
Also, you can use Testcontainers to run your own docker container using Dockerfile inside your tests.
You will learn these and more in this video!
Chapters:
00:00 INTRO
00:36 Code Overview
01:26 One Container Per Test
05:00 One Container Per Class
09:00 One Container Per Collection
11:53 Custom Container Test
19:14 OUTRO
Join my mailing list: https://mdbouk.com/
Follow me on X: https://x.com/mhdbouk
Buy me a coffee: https://buymeacoffee.com/mdbouk
Don’t forget to like, subscribe, and share this video with your fellow developers.
Happy Coding!
#dotnet #unittesting #docker #csharp #container