Testing complex data with Verify
summary
Verify is a .NET snapshot testing library that serializes complex objects to files, diffs runs against a checked-in baseline, and lets teams accept or reject changes with their normal diff tool. Workflow shows first-run failure creating a baseline, subsequent runs passing until a real change appears, and the library scrubs non-deterministic types like GUIDs and DateTimes. Integrations include Visual Studio/VS Code, CI pipelines, and an EF Core plugin to catch unexpected DB-request regressions.
AI-written summary · about
chapters (9)
- 0:00Verify testing tool
- 1:28Complex data needs good tests
- 2:35Traditional vs snapshot testing
- 5:07Verify in action
- 7:10Manual test assertion problems
- 8:15Verify simplifies testing workflow
- 10:05Breaking changes with Verify
- 11:57Verify with other test types
- 12:21Verify ecosystem
related talks
38mThe Verification of a Distributed System
01h 01mRaising the Value of Your Unit Tests
59m.NET Testing Techniques You Didn’t Know You Needed
49mHow do we do it? Testing and Verifying bugs for released software
23mBeyond Tests What to Verify in AI Generated Code
18mPreview: Verification (Correctness)
36mWeaving and seaming mocks
41mTesting .NET Web APIs from A to Z
