![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Docker --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Docker -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Docker" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Docker" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Docker" />Project file
paket add Rig.TUnit.Docker --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Docker, 0.1.0-beta.2"
#:package Rig.TUnit.Docker@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Docker&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Docker&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Generic Testcontainers-backed
ContainerFixturefor bespoke / third-party / exploratory container testing. Escape hatch when no provider-specific fixture fits.
A general-purpose container fixture for situations where none of the
provider-specific packages (SqlServer, Redis, Kafka, …) apply. Spins
an arbitrary image through Testcontainers, exposes the raw
IContainer for bespoke control, and wires the same
IsolationKey-based naming convention every other fixture uses.
Use when you are prototyping against a third-party service without a Rig.TUnit package, writing a custom test-harness container, or exploring a new backend before graduating to its own provider package.
Testcontainers (transitive)using Rig.TUnit.Docker.Fixtures;
await using var fx = new ContainerFixture(
image: "alpine:3",
env: new Dictionary<string, string> { ["FOO"] = "bar" },
exposedPorts: new[] { 8080 });
await fx.InitializeAsync();
| Property | Type | Default | Description |
|---|---|---|---|
DefaultImage |
string |
"alpine:3" |
Fallback image |
IsolatePerTestNetwork |
bool |
true |
Each fixture gets its own Docker network |
ReuseImageCache |
bool |
true |
Cache pulled images across fixtures |
DefaultStartupTimeoutSeconds |
int |
300 |
Readiness deadline |
Rig.TUnit.Docker.Fixtures.ContainerFixtureRig.TUnit.Docker.Options.DockerFixtureOptionsRig.TUnit.Docker.Builder.DockerRigBuilderEach ContainerFixture owns its container and network. Container names
include the IsolationKey suffix so parallel tests do not collide.
fx.Container.GetLogsAsync(); the fixture surfaces them for
diagnosis.See .
tc.host resolution
handles CI nesting), but port mapping differs — use
fx.Container.GetMappedPublicPort(port) for reliability.Ductus.FluentDocker is kept as a fallback escape hatch if the
native Testcontainers compose backend regresses; activation
criteria are documented per-incident.See ;
baseline in benchmarks/baseline-005.json.
MIT. See .
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Rig.TUnit.Docker:
| Package | Downloads |
|---|---|
|
Rig.TUnit.All
Meta-package containing every Rig.TUnit.* package. DISCOURAGED — prefer per-feature or per-stack meta-packages (Rig.TUnit, Rig.TUnit.Microservices). |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 68 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 70 | 4/26/2026 |