![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Grpc --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Grpc -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Grpc" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Grpc" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Grpc" />Project file
paket add Rig.TUnit.Grpc --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Grpc, 0.1.0-beta.2"
#:package Rig.TUnit.Grpc@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Grpc&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Grpc&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
In-process gRPC test host, client factory, and error-metadata helpers for
Grpc.AspNetCoreservices.
A WebApplicationFactory-style host that spins up your gRPC service in the
same process as the test, so calls skip the network stack entirely while
still exercising the full MVC pipeline (authentication, interceptors,
problem-details translation). The GrpcTestHost owns the TestServer,
wires a gRPC channel over the HttpMessageHandler, and exposes strongly-typed
clients for every service you register.
The helpers also include an RpcException inspector that unpacks the
binary problem-details-bin metadata key Microsoft's error-handling
middleware emits, so assertions can target ProblemDetails.Status,
Detail, and Type directly.
RpcException + problem-details).Grpc.AspNetCore.using Rig.TUnit.Grpc.Builder;
using Rig.TUnit.Core.Builder;
using Rig.TUnit.Core.Helpers;
var rig = new RigBuilder()
.WithIsolation(IsolationKey.FromExecutionContext())
.UseGrpc(cfg => cfg.ConfigureServices(s => s.AddLogging()))
.Build();
await using var _ = rig;
| Property | Type | Default | Description |
|---|---|---|---|
EnableDetailedErrors |
bool |
true |
Include stack traces in RpcException.Status.Detail. |
MaxReceiveMessageSize |
int? |
null |
Channel-side limit; null = gRPC default 4 MB. |
ClientTimeout |
TimeSpan |
30s |
Default deadline applied to generated clients. |
Rig.TUnit.Grpc.Builder.GrpcRigBuilder — CRTP builderRig.TUnit.Grpc.Helpers.GrpcTestHost — in-process host + channelRig.TUnit.Grpc.Helpers.ProblemDetailsAssert — unpack problem-details-binEvery GrpcTestHost runs in its own TestServer; the channel's base URI
includes the IsolationKey so traces and logs segregate cleanly. Services
registered with DI are fresh per test.
TestServer.Grpc.Core.RpcException: Status(StatusCode="Internal") — inspect
ex.Trailers for problem-details-bin; ProblemDetailsAssert.From(ex)
does this for you.See .
RpcException.Trailers is empty until the call completes — probe it
inside the catch branch, not during streaming.ApplicationExceptionInterceptor)
serialises IProblemDetailsProvider-typed exceptions into binary metadata
— non-typed exceptions become generic Internal status codes.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 3 NuGet packages that depend on Rig.TUnit.Grpc:
| 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). |
|
|
Rig.TUnit
Convenience meta-package bundling Core + Mediator + Grpc + WebAPI — the default entry point for most projects. Use Rig.TUnit.All only when you need every package. |
|
|
Rig.TUnit.Microservices
Meta-package: Core + Mediator + Grpc + Outbox + Tracing + Jwt + Seq — the opinionated microservice testing kit. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-beta.2 | 74 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 75 | 4/26/2026 |