Snapshot Testing
Snapshot testing in .NET with Verify that approves outputs through human-reviewed baseline files.
- CCM score
- 65 of 100
- skills.sh installs
- 509
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers API surfaces, HTTP responses, rendered HTML emails, and serialized objects, using
Verify.Xunit,Verify.NUnit, orVerify.MSTest - Includes a
ModuleInitializersetup, scrubbing of GUIDs and timestamps, and recommended.gitignoreand.gitattributesrules - Enforces a review gate in which
.received.output must be approved into.verified.files before tests pass - Designed for .NET teams that need to catch unintended changes in complex output, with CI integration for failing on unapproved diffs
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill snapshot-testing -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Snapshot Testing with Verify
When to Use This Skill
Use snapshot testing when:
- Verifying rendered output (HTML emails, reports, generated code)
- Approving public API surfaces for breaking change detection
- Testing HTTP response bodies and headers
- Validating serialization output
- Catching unintended changes in complex objects
What is Snapshot Testing?
Snapshot testing captures output and compares it against a human-approved baseline:
- First run: Test generates a
.received.file with actual output - Human review: Developer approves it, creating a
.verified.file - Subsequent runs: Test compares output against
.verified.file - Changes detected: Test fails, diff tool shows differences for review
This catches unintended changes while allowing intentional changes through explicit approval.
Installation
Add Verify Package
dotnet add package Verify.Xunit
# or for other test frameworks:
dotnet add package Verify.NUnit
dotnet add package Verify.MSTest
Configure ModuleInitializer
Create a ModuleInitializer.cs in your test project:
using System.Runtime.CompilerServices;
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- Testing & QA, .NET & C#
- First seen
- Jun 3, 2026
Questions
What does the snapshot-testing skill do?
The snapshot-testing skill uses Verify for snapshot testing in .NET, so you can approve API surfaces, HTTP responses, rendered emails and serialized outputs. It flags unintended changes by comparing output against human-reviewed baseline files. Changes you approve become the new baseline.
How do I install the snapshot-testing skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill snapshot-testing -y in your project. The command adds the snapshot-testing skill so your agent can use Verify for .NET snapshot tests.
Which test frameworks does snapshot-testing support with Verify?
The snapshot-testing skill sets up Verify.Xunit, and it also covers Verify.NUnit and Verify.MSTest for other .NET test frameworks. A ModuleInitializer file in the test project configures where verified files are stored.
Where does snapshot-testing sit among other Testing & QA skills?
The snapshot-testing skill is in the Testing & QA category, next to tdd, migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. It stands apart by focusing on Verify baseline files for .NET output such as rendered email HTML and public API surfaces.
More from aaronontheweb/dotnet-skills
All 34- Aspire Configuration508
- Dotnet Devcert Trust480
- Skills Index Snippets478
- Playwright Ci Caching476
- Akka Net Best Practices472
- Mailpit Integration465
- Verify Email Snapshots458
- OpenTelemetry NET Instrumentation456
- Akka Hosting Actor Patterns455
- Akka Net Testing Patterns452
- Akka Net Management451
- Akka Net Aspire Configuration437
- Marketplace Publishing430
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.6K
- Dependency Injection Patterns732
- Database Performance731
- Dotnet Project Structure723
- Type Design Performance716
- Api Design715
- Ilspy Decompile684
- Microsoft Extensions Configuration636
- Package Management635
Similar to Snapshot Testing
More Testing & QAverify-email-snapshotsaaronontheweb/dotnet-skills458 installsSnapshot tests that catch email template regressions by comparing rendered HTML against an approved baseline using Verify.
crap-analysisaaronontheweb/dotnet-skills605 installsAnalyzes coverage and CRAP scores with ReportGenerator to surface untested, high-complexity Risk Hotspots in .NET code.
test-taggingdotnet/skills4.7K installsClassifies existing tests by standard traits, reporting their distribution and applying canonical attributes where supported.
meticulous-testalwaysmeticulous/skills9.1K installsStep-by-step Meticulous visual test workflow that builds, uploads, and triggers a run before review.
fsharp-testingaffaan-m/ecc8.5K installsF# testing patterns covering xUnit, FsUnit, Unquote, and FsCheck property-based tests for .NET projects.
test-anti-patternsdotnet/skills6.1K installsAudits test suites in any language for anti-patterns, producing a severity-ranked report of false-confidence and maintainability issues.