Testcontainers 4.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Testcontainers --version 4.0.0                
NuGet\Install-Package Testcontainers -Version 4.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Testcontainers" Version="4.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Testcontainers --version 4.0.0                
#r "nuget: Testcontainers, 4.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Testcontainers as a Cake Addin
#addin nuget:?package=Testcontainers&version=4.0.0

// Install Testcontainers as a Cake Tool
#tool nuget:?package=Testcontainers&version=4.0.0                

Testcontainers

Open in GitHub Codespaces

NuGet CI/CD Alert Status Coverage

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. The library is built on top of the .NET Docker remote API and provides a lightweight implementation to support your test environment in all circumstances.

Testcontainers Banner

Read the documentation here

License

See LICENSE.

Copyright (c) 2019 - 2024 Andre Hofmeister and other authors.

See contributors for all contributors.


Join our Slack workspace | Testcontainers OSS | Testcontainers Cloud

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (79)

Showing the top 5 NuGet packages that depend on Testcontainers:

Package Downloads
Testcontainers.PostgreSql

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

Testcontainers.MsSql

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

Testcontainers.Redis

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

Testcontainers.Azurite

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

Testcontainers.MongoDb

Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.

GitHub repositories (53)

Showing the top 5 popular GitHub repositories that depend on Testcontainers:

Repository Stars
ardalis/CleanArchitecture
Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core
duplicati/duplicati
Store securely encrypted backups in the cloud!
dotnet/orleans
Cloud Native application framework for .NET
sshnet/SSH.NET
SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
dotnet/aspire
Tools, templates, and packages to accelerate building observable, production-ready apps
Version Downloads Last updated
4.1.0-beta.12035377103 96 11/26/2024
4.1.0-beta.11746011829 1,211 11/8/2024
4.0.0 299,877 11/1/2024
3.10.0 1,387,383 9/3/2024
3.9.0 2,342,636 6/16/2024
3.8.0 2,590,386 3/19/2024
3.8.0-beta.8238206979 5,423 3/11/2024
3.7.0 2,240,355 1/9/2024
3.6.0 1,410,949 11/10/2023
3.5.0 1,358,244 9/7/2023
3.4.0 542,226 8/10/2023
3.3.0 1,042,003 6/27/2023
3.2.0 645,954 5/23/2023
3.1.0 227,611 4/28/2023
3.0.0 730,141 3/8/2023
2.4.0 544,583 2/1/2023
2.3.0 982,326 12/12/2022
2.3.0-beta.3547636764 2,903 11/25/2022
2.2.0 1,126,679 10/27/2022
2.2.0-beta.3336066153 3,571 10/27/2022
2.2.0-beta.3311860540 3,756 10/24/2022
2.2.0-beta.3290165812 1,237 10/20/2022
2.2.0-beta.3123645733 10,134 9/25/2022
2.2.0-beta.2835065501 50,975 8/10/2022
2.2.0-beta.2797896103 6,036 8/4/2022
2.2.0-beta.2760496496 1,375 7/29/2022
2.1.0 1,025,098 7/20/2022
2.1.0-beta.2698157448 11,132 7/19/2022
2.1.0-beta.2561986470 1,380 6/25/2022
2.1.0-beta.2543038937 177 6/22/2022
2.1.0-beta.2536126951 186 6/21/2022
2.0.1 50,752 6/22/2022
2.0.0 5,392 6/21/2022
1.7.0-beta.2530372824 267 6/20/2022
0.0.2.107 26,267 7/16/2019
0.0.2.106 1,255 7/11/2019
0.0.2.64 7,172 2/15/2019
0.0.2.57 3,055 9/27/2018
0.0.2.55 1,766 7/20/2018
0.0.2.53 1,669 7/4/2018
0.0.2-alpha 1,530 6/22/2018
0.0.1-alpha 1,428 3/7/2018