.NET Verify Snapshot Testing
SkillAI & modelsThis skill should be used when working with Verify snapshot tests in .NET projects. Use when updating verified snapshots after intentional code changes, accepting new snapshots, discovering verify tests, or troubleshooting snapshot mismatches. Trigger phrases include "verify tests", "update snapshots", "accept snapshots", "verified files", ".verified.txt".
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the .NET Verify Snapshot Testing skill
What this skill tells your AI
The instructions your AI receives, as published by nikiforovall/claude-code-rules in plugins/handbook-dotnet/skills/dotnet-verify/SKILL.md and read by ahel’s review.
Manage Verify snapshot tests using the verify.tool dotnet local tool.
Discovery
To list all test files using Verify snapshots:
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs
To scope to a specific directory:
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs <path/to/test/directory>
Update Snapshots
To update snapshots after intentional code changes:
-
Build the solution:
dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimal -
Run affected verify tests (they fail, generating
.received.files):dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m -
Accept all new snapshots:
dotnet verify accept -yTo scope to a specific directory:
dotnet verify accept -y -w <path/to/test/directory> -
Re-run tests to confirm they pass:
dotnet test <test-project> --no-build --filter "FullyQualifiedName~<TestClass>" -v m
File Conventions
ClassName.MethodName.verified.txt— accepted snapshot (committed to git)ClassName.MethodName.received.txt— latest test output (not committed, gitignored)- Parameterized tests:
ClassName.MethodName_param=value.verified.txt
Quick Reference
| Command | Purpose |
|---|---|
dotnet verify accept -y | Accept all pending snapshots |
dotnet verify accept -y -w <dir> | Accept snapshots in specific directory |
rg -l "Verifier\.Verify|UsesVerify|\.verified\." --type cs | List all test files using Verify |
Signals
- GitHub stars
- 141
- Forks
- 21
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
dotnet-verify- Source
- github.com/nikiforovall/claude-code-rules