![]() |
VOOZH | about |
dotnet add package Rig.TUnit.Microservices.Snapshots --version 0.1.0-beta.2
NuGet\Install-Package Rig.TUnit.Microservices.Snapshots -Version 0.1.0-beta.2
<PackageReference Include="Rig.TUnit.Microservices.Snapshots" Version="0.1.0-beta.2" />
<PackageVersion Include="Rig.TUnit.Microservices.Snapshots" Version="0.1.0-beta.2" />Directory.Packages.props
<PackageReference Include="Rig.TUnit.Microservices.Snapshots" />Project file
paket add Rig.TUnit.Microservices.Snapshots --version 0.1.0-beta.2
#r "nuget: Rig.TUnit.Microservices.Snapshots, 0.1.0-beta.2"
#:package Rig.TUnit.Microservices.Snapshots@0.1.0-beta.2
#addin nuget:?package=Rig.TUnit.Microservices.Snapshots&version=0.1.0-beta.2&prereleaseInstall as a Cake Addin
#tool nuget:?package=Rig.TUnit.Microservices.Snapshots&version=0.1.0-beta.2&prereleaseInstall as a Cake Tool
Snapshot-testing assertion compatible with Verify.TUnit file naming, with microservice-opinionated scrubbers.
A lightweight snapshot-testing harness compatible with Verify.TUnit
file-naming convention ({name}.received.* / {name}.verified.*).
What it adds on top is an opinionated, microservice-shaped scrubber
pipeline: correlation/causation IDs, event IDs, timestamps, sequence
numbers, connection strings, and filesystem paths become deterministic
placeholders before comparison. Without this, every snapshot test would
drift on every run.
SnapshotAssert is for
structured value comparison.Verify.TUnit (transitive)using Rig.TUnit.Microservices.Snapshots;
var payload = new { Id = Guid.NewGuid(), At = DateTimeOffset.UtcNow, Total = 42 };
var result = await SnapshotAssert.MatchJson(
payload, name: "order-created", directory: "__snapshots__");
| Property | Type | Default | Description |
|---|---|---|---|
AutoVerify |
bool |
false |
First-run auto-create {name}.verified.* (off by default — review) |
ScrubExtraPatterns |
string[]? |
null |
Extra regex patterns to scrub beyond defaults |
DiffOnFailure |
bool |
true |
Include line-diff in exception message |
Rig.TUnit.Microservices.Snapshots.SnapshotAssertRig.TUnit.Microservices.Snapshots.Scrubbers.DefaultScrubbersRig.TUnit.Microservices.Snapshots.Options.SnapshotOptionsSnapshot files are named by the name argument + the test file's
directory — tests cannot collide by design. Verify.TUnit's naming
convention is preserved.
ScrubExtraPatterns or file a bug if it looks like a
common shape.SnapshotAssertionException — inspect the .received.* file
side-by-side with .verified.*; the exception message includes a
line-diff by default.See .
CorrelationId /
CausationId values, EventId / MessageId, Sequence numeric,
SQL Server connection strings, Windows/Unix absolute paths. Each is
replaced with a deterministic placeholder.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 2 NuGet packages that depend on Rig.TUnit.Microservices.Snapshots:
| 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.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 | 69 | 4/27/2026 |
| 0.0.0-alpha.0.14 | 62 | 4/26/2026 |