/PlayingWithTestContainers

Try out Testcontainers and Respawn in integration test using Alba TestHost

Primary LanguageC#

Playing with Testcontainers

In this repository you can find an example using minimal API with a few libraries together, but the project mainly focuses on integration testing.

Alba helps to run the API in-memory, while the PostgreSQL server can run in Docker using Testcontainers. After each test, the database is cleaned with the Respawn library, ensuring that each test runs in a clean state.

Resources



  • FluentDocker 👤Mario Toffia - Other library that enables docker and docker-compose interactions