Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
Info
| Version: | 4.9.0 |
| Author(s): | swissarmykirpan |
| Last Update: | Sunday, November 23, 2025 |
| .NET Fiddle: | Create the first Fiddle |
| Project Url: | https://dotnet.testcontainers.org/ |
| NuGet Url: | https://www.nuget.org/packages/TestContainers |
Install
Install-Package TestContainers
dotnet add package TestContainers
paket add TestContainers
TestContainers Download (Unzip the "nupkg" after downloading)
Dependencies
- Docker.Dotnet(>= 3.125.2)
- MySql.Data(>= 6.10.6)
- Newtonsoft.Json(>= 11.0.2)
- Npgsql(>= 4.0.2)
- Polly(>= 6.0.1)
- RabbitMQ.Client(>= 5.1.0)
- StackExchange.Redis(>= 1.2.6)
- StyleCop.Analyzers(>= 1.0.2)
Tags