aweXpect.Snapshots
0.1.0
Prefix Reserved
See the version list below for details.
dotnet add package aweXpect.Snapshots --version 0.1.0
NuGet\Install-Package aweXpect.Snapshots -Version 0.1.0
<PackageReference Include="aweXpect.Snapshots" Version="0.1.0" />
<PackageVersion Include="aweXpect.Snapshots" Version="0.1.0" />
<PackageReference Include="aweXpect.Snapshots" />
paket add aweXpect.Snapshots --version 0.1.0
#r "nuget: aweXpect.Snapshots, 0.1.0"
#:package aweXpect.Snapshots@0.1.0
#addin nuget:?package=aweXpect.Snapshots&version=0.1.0
#tool nuget:?package=aweXpect.Snapshots&version=0.1.0
aweXpect.Snapshots
Snapshot testing for aweXpect.
At a glance
// compare a string with the snapshot that is stored next to the test
await Expect.That(description).MatchesSnapshot();
// compare an object, written completely and indented by the aweXpect formatter
await Expect.That(album).MatchesSnapshot();
// replace values that change from run to run before comparing
await Expect.That(playlist).MatchesSnapshot().Masking.Regex(@"plays=\d+", "plays=<count>");
// replace every Guid and ISO 8601 date with a numbered placeholder ({Guid_1}, {Date_1}, …)
await Expect.That(playlist).MatchesSnapshot().Masking.Guids().Masking.Dates();
// leave out or mask members of an object by their name or type
await Expect.That(album).MatchesSnapshot().Ignoring.Member("PlayCount").Masking.Member("Id");
The snapshot is stored as <Class>.<Method>.snapshot.txt next to the test file, where <Class> is the name of the
test file. A missing or different snapshot fails the test and writes the actual value to
<Class>.<Method>.snapshot.pending.txt; rename it to <Class>.<Method>.snapshot.txt to accept it, or set the
environment variable AWEXPECT_ACCEPT_SNAPSHOTS to accept all changed snapshots of a test run.
OrphanedSnapshots.CheckAsync() in the teardown of the test run reports the snapshots that no test uses any more on a
build server, and deletes them while accepting changes.
Overview
| Expectation | Subject | Summary |
|---|---|---|
MatchesSnapshot |
string |
matches the snapshot stored next to the test |
MatchesSnapshot |
any T |
matches the snapshot of the object, written by aweXpect |
Documentation
The full documentation is available at docs.testably.org.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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 was computed. |
| .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. |
-
.NETStandard 2.0
- aweXpect.Core (>= 3.4.0-pre.2)
-
net10.0
- aweXpect.Core (>= 3.4.0-pre.2)
-
net8.0
- aweXpect.Core (>= 3.4.0-pre.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on aweXpect.Snapshots:
| Package | Downloads |
|---|---|
|
aweXpect.Snapshots.PublicApi
Public API snapshots for aweXpect. |
|
|
aweXpect.Snapshots.DiffEngine
Opens a diff tool with DiffEngine for snapshots of aweXpect.Snapshots that are missing or different. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.3.0 | 474 | 11/19/2026 |
| 4.2.0 | 4,519 | 11/15/2026 |
| 4.1.0 | 172 | 11/13/2026 |
| 4.0.0 | 1,895 | 11/10/2026 |
| 4.0.0-pre.4 | 743 | 11/6/2026 |
| 4.0.0-beta.0.pre.3 | 3,694 | 10/29/2026 |
| 4.0.0-beta.0.pre.2 | 225 | 10/27/2026 |
| 4.0.0-beta.0.pre.1 | 83 | 10/22/2026 |
| 0.6.0 | 2,064 | 10/19/2026 |
| 0.5.0 | 1,040 | 10/18/2026 |
| 0.4.0 | 186 | 10/18/2026 |
| 0.3.0 | 2,740 | 10/18/2026 |
| 0.2.0 | 107 | 10/17/2026 |
| 0.1.0 | 74 | 10/17/2026 |